Add simple dialog curtain

This commit is contained in:
seven332 committed 2015-04-27 23:51:33 +08:00
1 parent 09cda0ce06
commit dd23537302
12 files changed
+386 -16

No files matched your search

@@ -35,6 +35,12 @@ public class AssertUtils {
}
}
public static void assertInstanceof(String message, Object obj, Class clazz) {
if (!clazz.isInstance(obj)) {
throw new AssertError(message);
}
}
public static void assertNullEx(String message, Object object)
throws AssertException {
if (object != null) {
@@ -55,4 +61,11 @@ public class AssertUtils {
throw new AssertException(message);
}
}
public static void assertInstanceofEx(String message, Object obj, Class clazz)
throws AssertException {
if (!clazz.isInstance(obj)) {
throw new AssertException(message);
}
}
}