Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2007-02-27 10:48:33 +0000
committerMarkus Schorn2007-02-27 10:48:33 +0000
commit39237a89b0fb7822d3c3f95d1288a84f7527c861 (patch)
treef7bca4bc36e725cf9c5b7147ec359ebc2c842c84
parentb5e8c719fe2b8fb507970a3d09019015b91a66c5 (diff)
downloadorg.eclipse.cdt-39237a89b0fb7822d3c3f95d1288a84f7527c861.tar.gz
org.eclipse.cdt-39237a89b0fb7822d3c3f95d1288a84f7527c861.tar.xz
org.eclipse.cdt-39237a89b0fb7822d3c3f95d1288a84f7527c861.zip
Fixes testcase for running with assertions enabled.
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/pdom/tests/DBPropertiesTests.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/pdom/tests/DBPropertiesTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/pdom/tests/DBPropertiesTests.java
index e63210c51a2..7a5e7bcc3e5 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/pdom/tests/DBPropertiesTests.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/pdom/tests/DBPropertiesTests.java
@@ -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));

Back to the top