diff options
author | aclement <aclement> | 2006-08-18 12:28:31 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-08-18 12:28:31 +0000 |
commit | 1619a751e2a4a8a38676d5c96697022bdc798710 (patch) | |
tree | 5429161c118c159d6d5576ea8617bff4701d165e /tests | |
parent | 9a84fe9d3af82b03103c4566a953fc54837db1f9 (diff) | |
download | aspectj-1619a751e2a4a8a38676d5c96697022bdc798710.tar.gz aspectj-1619a751e2a4a8a38676d5c96697022bdc798710.zip |
for AJDT dont store messages - waste of space!
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java index b596bb5f4..345681de0 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java @@ -1462,7 +1462,12 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa assertTrue("expected the handler to be an IMessageHolder but wasn't ", handler instanceof IMessageHolder); IMessage[] msgs = ((IMessageHolder)AjdeManager.getMessageHandler()).getMessages(null,true); - IMessage msg = msgs[msgs.length-1]; + assertTrue("There should be no messages but I found: "+msgs.length,msgs.length==0); + + List tasklistMessages = MyTaskListManager.getWarningMessages(); + assertTrue("Should be one message but found "+tasklistMessages.size(),tasklistMessages.size()==1); + + IMessage msg = (IMessage)tasklistMessages.get(0); assertTrue("expected message to be a LintMessage but wasn't", msg instanceof LintMessage); assertTrue("expected message to be noGuardForLazyTjp xlint message but" + |