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:
parent
b5e8c719fe
commit
39237a89b0
1 changed files with 9 additions and 3 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue