package alonzo.unit;

/**
 * Assertion helper functions live here.
 */
public class Assert {

    /**
     * Compares expected with actual for equality, throwing AssertionFailureException if they are
     * not equal. This function is null-safe.
     * @param expected The expected value of actual. May be {@code null}.
     * @param actual   The actual value. May be {@code null}.
     * @throws AssertionFailureException if expected does not equal actual.
     */
    public static void assertEquals(final Object expected, final Object actual) {
        if (expected == actual) { return; }

        if (expected == null || actual == null || !expected.equals(actual)) {
            throw new AssertionFailureException(failureMessage(expected, actual));
        }
    }

    /** @see #assertEquals(Object, Object) */
    public static void assertEquals(final int expected, final int actual) {
        assertEquals((Integer) expected, (Integer) actual);
    }

    private static String failureMessage(final Object expected, final Object actual) {
        return "Expected: <" + expected + ">, actual: <" + actual + ">";
    }

    /**
     * Fails the current test, using the given message as the reason.
     * @param message The reason the test failed.
     * @throws AssertionFailureException with the given message.
     */
    public static void fail(final String message) {
        throw new AssertionFailureException(message);
    }

}

@@ -87,16 +87,451 @@
 sert %7B%0A%0A
+    /**%0A     * Checks that the given boolean expression is true, throwing %7B@link AssertionFailureException%7D%0A     * if it is not true.%0A     * @param booleanExpr The boolean expression being asserted on.%0A     * @throws AssertionFailureException if booleanExpr is false.%0A     */%0A    public static void assertTrue(final boolean booleanExpr) %7B%0A        if (!booleanExpr) %7B%0A            throw new AssertionFailureException();%0A        %7D%0A    %7D%0A%0A
     /**%0A
@@ -590,16 +590,23 @@
 hrowing 
+%7B@link 
 Assertio
@@ -622,19 +622,27 @@
 xception
+%7D
  if
+%0A     *
  they ar
@@ -642,23 +642,16 @@
 they are
-%0A     *
  not equ

Add Assert.assertTrue.