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 + ">";
    }

}

@@ -1064,16 +1064,17 @@
 Expected
+:
  %3C%22 + ex
@@ -1120,10 +1120,324 @@
 %0A    %7D%0A%0A
+    /**%0A     * Fails the current test, using the given message as the reason.%0A     * @param message The reason the test failed.%0A     * @throws AssertionFailureException with the given message.%0A     */%0A    public static void fail(final String message) %7B%0A        throw new AssertionFailureException(message);%0A    %7D%0A%0A
 %7D%0A

Add Assert.fail(...).