Update ContentLayout

This commit is contained in:
seven332 committed 2015-05-09 00:15:44 +08:00
1 parent 8da847ebc8
commit 755354a8fe
14 files changed
+451 -54

No files matched your search

@@ -35,6 +35,12 @@ public class AssertUtils {
}
}
public static void assertNotEquals(String message, int expected, int actual) {
if (expected == actual) {
throw new AssertError(message);
}
}
public static void assertInstanceof(String message, Object obj, Class clazz) {
if (!clazz.isInstance(obj)) {
throw new AssertError(message);
@@ -62,6 +68,13 @@ public class AssertUtils {
}
}
public static void assertNotEqualsEx(String message, int expected, int actual)
throws AssertException {
if (expected == actual) {
throw new AssertException(message);
}
}
public static void assertInstanceofEx(String message, Object obj, Class clazz)
throws AssertException {
if (!clazz.isInstance(obj)) {