aboutsummaryrefslogtreecommitdiffstats
path: root/ajde/testsrc
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-09 14:54:09 +0000
committeraclement <aclement>2005-11-09 14:54:09 +0000
commit0d6fb38c0e32052fb2f3b6ff3d9738e749299a3a (patch)
treec3c9a500767e5ad52de090ef3a1a315f3a29f17d /ajde/testsrc
parent7a1002aba3960caddb4c50ef7e66cc9ac6fb1f58 (diff)
downloadaspectj-0d6fb38c0e32052fb2f3b6ff3d9738e749299a3a.tar.gz
aspectj-0d6fb38c0e32052fb2f3b6ff3d9738e749299a3a.zip
produce better diagnostics on failure.
Diffstat (limited to 'ajde/testsrc')
-rw-r--r--ajde/testsrc/org/aspectj/ajde/ShowWeaveMessagesTestCase.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/ajde/testsrc/org/aspectj/ajde/ShowWeaveMessagesTestCase.java b/ajde/testsrc/org/aspectj/ajde/ShowWeaveMessagesTestCase.java
index 258ff96dc..e65181303 100644
--- a/ajde/testsrc/org/aspectj/ajde/ShowWeaveMessagesTestCase.java
+++ b/ajde/testsrc/org/aspectj/ajde/ShowWeaveMessagesTestCase.java
@@ -347,6 +347,8 @@ public class ShowWeaveMessagesTestCase extends AjdeTestCase {
fr = new BufferedReader(new FileReader(f));
String line = null;
while ((line=fr.readLine())!=null) fileContents.add(line);
+ List originalFileContents = new ArrayList();
+ originalFileContents.addAll(fileContents);
// See if the messages match
int msgCount = 0;
@@ -356,8 +358,8 @@ public class ShowWeaveMessagesTestCase extends AjdeTestCase {
if (debugTests) System.out.println("Looking at ["+msg+"]");
if (msg.getKind().equals(IMessage.WEAVEINFO)) {
if (!fileContents.contains(msg.getMessage())) {
- fail("Could not find message '"+msg.getMessage()+"' in the expected results\n"+
- stringify(fileContents));
+ fail("Could not find message '"+msg.getMessage()+"' in the expected results. Expected results are:\n"+
+ stringify(originalFileContents));
} else {
fileContents.remove(msg.getMessage());
}