diff options
author | wisberg <wisberg> | 2004-01-09 07:21:26 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2004-01-09 07:21:26 +0000 |
commit | 4b0e98cb1bad527bf18c5d706ae761bb7003e7f3 (patch) | |
tree | 4a03753aeb2ea6e3041c5d2cb734523fa6c72cdf /bridge/testsrc | |
parent | e683ed8b8b217808f653a3231a56164ef03a689b (diff) | |
download | aspectj-4b0e98cb1bad527bf18c5d706ae761bb7003e7f3.tar.gz aspectj-4b0e98cb1bad527bf18c5d706ae761bb7003e7f3.zip |
NPE instead of IAX for null input, clear out unused code, and update test.
Diffstat (limited to 'bridge/testsrc')
-rw-r--r-- | bridge/testsrc/org/aspectj/bridge/MessageTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bridge/testsrc/org/aspectj/bridge/MessageTest.java b/bridge/testsrc/org/aspectj/bridge/MessageTest.java index 19cbc50ef..2f4482cec 100644 --- a/bridge/testsrc/org/aspectj/bridge/MessageTest.java +++ b/bridge/testsrc/org/aspectj/bridge/MessageTest.java @@ -206,6 +206,9 @@ public class MessageTest extends TestCase { String descriptor, Class exClass) { try { IMessage m = make(input, kind, thrown, sourceLocation, descriptor); + if ((null == input) && (null != thrown)) { + input = thrown.getMessage(); + } roundTripCheck(m, input, kind, thrown, sourceLocation); } catch (AssertionFailedError x) { throw x; @@ -219,7 +222,7 @@ public class MessageTest extends TestCase { Throwable thrown, ISourceLocation sourceLocation) { IMessage m = message; assertTrue("not null", null != m); - assertTrue(""+input, equals(input, m.getMessage())); + assertEquals(input, m.getMessage()); assertTrue(""+kind, kind == m.getKind()); assertTrue(""+thrown, equals(thrown, m.getThrown())); assertTrue(""+sourceLocation, |