private static <T> void assertEquals(T a, T b) { if (a == null) { if (b != null) { throw new SanityCheckFailedException("\"" + a + "\" does not equal \"" + b + "\""); } } else if (!a.equals(b)) { throw new SanityCheckFailedException("\"" + a + "\" does not equal \"" + b + "\""); } }
private static void assertFalse(boolean condition) { if (condition) { throw new SanityCheckFailedException("The condition is true"); } } }
private static void assertTrue(boolean condition) { if (!condition) { throw new SanityCheckFailedException("The condition is false"); } }
private static <T> void assertEquals(T a, T b) { if (a == null) { if (b != null) { throw new SanityCheckFailedException("\"" + a + "\" does not equal \"" + b + "\""); } } else if (!a.equals(b)) { throw new SanityCheckFailedException("\"" + a + "\" does not equal \"" + b + "\""); } }
private static <T> void assertNotSame(T a, T b) { if (a != b) { throw new SanityCheckFailedException("\"" + a + "\" and \"" + b + "\" are not the same object"); } }
private static void assertTrue(boolean condition) { if (!condition) { throw new SanityCheckFailedException("The condition is false"); } }
private static <T> void assertNotSame(T a, T b) { if (a != b) { throw new SanityCheckFailedException("\"" + a + "\" and \"" + b + "\" are not the same object"); } }
private static void assertFalse(boolean condition) { if (condition) { throw new SanityCheckFailedException("The condition is true"); } } }