1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Fixes testcase for running with assertions enabled.

This commit is contained in:
Markus Schorn 2007-02-27 10:48:33 +00:00
parent b5e8c719fe
commit 39237a89b0

View file

@ -88,17 +88,23 @@ public class DBPropertiesTests extends BaseTestCase {
try {
ps.setProperty(null, "val1");
fail("NullPointerException expected");
} catch(NullPointerException e) {}
} catch(NullPointerException e) {
} catch(AssertionError e) {
}
try {
ps.setProperty("key", null);
fail("NullPointerException expected");
} catch(NullPointerException e) {}
} catch(NullPointerException e) {
} catch(AssertionError e) {
}
try {
ps.setProperty(null, null);
fail("NullPointerException expected");
} catch(NullPointerException e) {}
} catch(NullPointerException e) {
} catch(AssertionError e) {
}
assertFalse(ps.removeProperty(null));