Add simple dialog curtain
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user