[LOGBack-dev] svn commit: r311 - logback/core/trunk/src/test/java/ch/qos/logback/core/status
noreply.seb at qos.ch
noreply.seb at qos.ch
Tue Jul 25 18:57:49 CEST 2006
Author: seb
Date: Tue Jul 25 18:57:48 2006
New Revision: 311
Modified:
logback/core/trunk/src/test/java/ch/qos/logback/core/status/StatusBaseTest.java
Log:
better Exception handling
Modified: logback/core/trunk/src/test/java/ch/qos/logback/core/status/StatusBaseTest.java
==============================================================================
--- logback/core/trunk/src/test/java/ch/qos/logback/core/status/StatusBaseTest.java (original)
+++ logback/core/trunk/src/test/java/ch/qos/logback/core/status/StatusBaseTest.java Tue Jul 25 18:57:48 2006
@@ -17,13 +17,11 @@
}
{
InfoStatus status = new InfoStatus("testing", this);
- boolean thrown = false;
try {
status.add(null);
+ fail("method should have thrown an Exception");
} catch (NullPointerException ex) {
- thrown = true;
}
- assertTrue("Exception was not thrown", thrown);
}
}
More information about the logback-dev
mailing list