/** * Throws an AssertionFailed exception if the specified condition is * false * * @param condition The assertion condition which must be true */ public static void verify(boolean condition) { if (!condition) { throw new AssertionFailed(); } }
/** * Default constructor * Prints the stack trace */ public AssertionFailed() { super(); printStackTrace(); }
/** * Throws an AssertionFailed exception if the specified condition is * false * * @param condition The assertion condition which must be true */ public static void verify(boolean condition) { if (!condition) { throw new AssertionFailed(); } }
/** * Default constructor * Prints the stack trace */ public AssertionFailed() { super(); printStackTrace(); }
/** * If the condition evaluates to false, an AssertionFailed is thrown * * @param message A message thrown with the failed assertion * @param condition If this evaluates to false, an AssertionFailed is thrown */ public static void verify(boolean condition, String message) { if (!condition) { throw new AssertionFailed(message); } } }
/** * If the condition evaluates to false, an AssertionFailed is thrown * * @param message A message thrown with the failed assertion * @param condition If this evaluates to false, an AssertionFailed is thrown */ public static void verify(boolean condition, String message) { if (!condition) { throw new AssertionFailed(message); } } }