aboutsummaryrefslogtreecommitdiffstats
path: root/ajde/testsrc
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-04-30 02:41:39 +0000
committerwisberg <wisberg>2003-04-30 02:41:39 +0000
commit77c6ad9f84b6601cd05c7ed01fb2402497cddfbc (patch)
treee7c9641f1fd155f94668ab31a2e62761945514b2 /ajde/testsrc
parentb0b9b68419808ef90dc6b31d051e6d859f3651c1 (diff)
downloadaspectj-77c6ad9f84b6601cd05c7ed01fb2402497cddfbc.tar.gz
aspectj-77c6ad9f84b6601cd05c7ed01fb2402497cddfbc.zip
no change, just nicer feedback
Diffstat (limited to 'ajde/testsrc')
-rw-r--r--ajde/testsrc/org/aspectj/ajde/CompilerMessagesTest.java5
-rw-r--r--ajde/testsrc/org/aspectj/ajde/StructureModelTest.java7
2 files changed, 10 insertions, 2 deletions
diff --git a/ajde/testsrc/org/aspectj/ajde/CompilerMessagesTest.java b/ajde/testsrc/org/aspectj/ajde/CompilerMessagesTest.java
index ce3361cca..92174397a 100644
--- a/ajde/testsrc/org/aspectj/ajde/CompilerMessagesTest.java
+++ b/ajde/testsrc/org/aspectj/ajde/CompilerMessagesTest.java
@@ -12,6 +12,8 @@
package org.aspectj.ajde;
+import org.aspectj.bridge.MessageUtil;
+
import java.io.IOException;
import java.util.List;
@@ -38,6 +40,9 @@ public class CompilerMessagesTest extends AjdeTestCase {
// The build has happened, what messages did the compiler give, and do they
// contain the information we expect?
List msgs = NullIdeManager.getIdeManager().getCompilationSourceLineTasks();
+ if (1 != msgs.size()) {
+ assertTrue("not one message: " + msgs, false);
+ }
assertEquals("One warning message should be produced",1,msgs.size());
NullIdeTaskListManager.SourceLineTask task =
(NullIdeTaskListManager.SourceLineTask) msgs.get(0);
diff --git a/ajde/testsrc/org/aspectj/ajde/StructureModelTest.java b/ajde/testsrc/org/aspectj/ajde/StructureModelTest.java
index 1c5fb1e61..625990e3a 100644
--- a/ajde/testsrc/org/aspectj/ajde/StructureModelTest.java
+++ b/ajde/testsrc/org/aspectj/ajde/StructureModelTest.java
@@ -84,7 +84,8 @@ public class StructureModelTest extends AjdeTestCase {
testFile.getCanonicalPath());
assertTrue("find result", node != null) ;
ProgramElementNode pNode = (ProgramElementNode)node;
- assertTrue("found child", ((StructureNode)pNode.getChildren().get(0)).getName().equals("Figure"));
+ String child = ((StructureNode)pNode.getChildren().get(0)).getName();
+ assertTrue("expected Figure got child " + child, child.equals("Figure"));
}
public void testPointcutName() throws IOException {
@@ -120,7 +121,9 @@ public class StructureModelTest extends AjdeTestCase {
assertTrue("find result", node != null);
ProgramElementNode pNode = (ProgramElementNode)((ProgramElementNode)node).getParent();
- assertTrue("null parent", pNode != null);
+ if (null == pNode) {
+ assertTrue("null parent of " + node, false);
+ }
assertTrue("found node: " + pNode.getName(), pNode.isRunnable());
}