aboutsummaryrefslogtreecommitdiffstats
path: root/devtest/src/main/java/com/google/gwt/query/client/MyTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'devtest/src/main/java/com/google/gwt/query/client/MyTestCase.java')
-rw-r--r--devtest/src/main/java/com/google/gwt/query/client/MyTestCase.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/devtest/src/main/java/com/google/gwt/query/client/MyTestCase.java b/devtest/src/main/java/com/google/gwt/query/client/MyTestCase.java
index 04cedfa4..8d8751a0 100644
--- a/devtest/src/main/java/com/google/gwt/query/client/MyTestCase.java
+++ b/devtest/src/main/java/com/google/gwt/query/client/MyTestCase.java
@@ -36,10 +36,18 @@ public class MyTestCase {
check(!b, "assertTrue: actual should be false but is true");
}
+ public static void assertFalse(String msg, boolean b) {
+ check(!b, msg);
+ }
+
public static void assertNotNull(Object a) {
check(a != null, "assertNotNull: actual object is null");
}
+ public static void assertNull(Object a) {
+ check(a == null, "assertNull: actual object is not null");
+ }
+
public static void assertTrue(boolean b) {
check(b, "assertTrue: actual should be true but is false");
}