package org.aspectj.ajde;
+import org.aspectj.bridge.MessageUtil;
+
import java.io.IOException;
import java.util.List;
// 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);
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 {
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());
}