Protect constructor since it is a static only class
Asserts that two object arrays are equal. If they are not, an {@link AssertionError} is thrown with the given message. If <code>expecteds</code> and <code>actuals</code> are <code>null</code>, they are considered equal.
Asserts that two object arrays are equal. If they are not, an {@link AssertionError} is thrown. If <code>expected</code> and <code>actual</code> are <code>null</code>, they are considered equal.
Asserts that two objects are equal. If they are not, an {@link AssertionError} is thrown with the given message. If <code>expected</code> and <code>actual</code> are <code>null</code>, they are considered equal.
Asserts that two objects are equal. If they are not, an {@link AssertionError} without a message is thrown. If <code>expected</code> and <code>actual</code> are <code>null</code>, they are considered equal.
Asserts that two doubles are equal to within a positive delta. If they are not, an {@link AssertionError} is thrown with the given message. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: <code>assertEquals(Double.NaN, Double.NaN, *)</code> passes
Asserts that two floats are equal to within a positive delta. If they are not, an {@link AssertionError} is thrown with the given message. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: <code>assertEquals(Float.NaN, Float.NaN, *)</code> passes
Asserts that two longs are equal. If they are not, an {@link AssertionError} is thrown.
Asserts that two longs are equal. If they are not, an {@link AssertionError} is thrown with the given message.
Asserts that two doubles are equal to within a positive delta. If they are not, an {@link AssertionError} is thrown. If the expected value is infinity then the delta value is ignored.NaNs are considered equal: <code>assertEquals(Double.NaN, Double.NaN, *)</code> passes
Asserts that two floats are equal to within a positive delta. If they are not, an {@link AssertionError} is thrown. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: <code>assertEquals(Float.NaN, Float.NaN, *)</code> passes
Asserts that a condition is false. If it isn't it throws an {@link AssertionError} with the given message.
Asserts that a condition is false. If it isn't it throws an {@link AssertionError} without a message.
Asserts that two objects are <b>not</b> equals. If they are, an {@link AssertionError} is thrown with the given message. If <code>unexpected</code> and <code>actual</code> are <code>null</code>, they are considered equal.
Asserts that two objects are <b>not</b> equals. If they are, an {@link AssertionError} without a message is thrown. If <code>unexpected</code> and <code>actual</code> are <code>null</code>, they are considered equal.
Asserts that two longs are <b>not</b> equals. If they are, an {@link AssertionError} is thrown with the given message.
Asserts that two longs are <b>not</b> equals. If they are, an {@link AssertionError} without a message is thrown.
Asserts that two doubles are <b>not</b> equal to within a positive delta. If they are, an {@link AssertionError} is thrown with the given message. If the unexpected value is infinity then the delta value is ignored. NaNs are considered equal: <code>assertNotEquals(Double.NaN, Double.NaN, *)</code> fails
Asserts that two doubles are <b>not</b> equal to within a positive delta. If they are, an {@link AssertionError} is thrown. If the unexpected value is infinity then the delta value is ignored.NaNs are considered equal: <code>assertNotEquals(Double.NaN, Double.NaN, *)</code> fails
Asserts that two floats are <b>not</b> equal to within a positive delta. If they are, an {@link AssertionError} is thrown. If the unexpected value is infinity then the delta value is ignored.NaNs are considered equal: <code>assertNotEquals(Float.NaN, Float.NaN, *)</code> fails
Asserts that two floats are <b>not</b> equal to within a positive delta. If they are, an {@link AssertionError} is thrown with the given message. If the unexpected value is infinity then the delta value is ignored. NaNs are considered equal: <code>assertNotEquals(Float.NaN, Float.NaN, *)</code> fails
Asserts that an object isn't null. If it is an {@link AssertionError} is thrown with the given message.
Asserts that an object isn't null. If it is an {@link AssertionError} is thrown.
Asserts that two objects do not refer to the same object. If they do refer to the same object, an {@link AssertionError} is thrown with the given message.
Asserts that two objects do not refer to the same object. If they do refer to the same object, an {@link AssertionError} without a message is thrown.
Asserts that an object is null. If it is not, an {@link AssertionError} is thrown with the given message.
Asserts that an object is null. If it isn't an {@link AssertionError} is thrown.
Asserts that two objects refer to the same object. If they are not, an {@link AssertionError} is thrown with the given message.
Asserts that two objects refer to the same object. If they are not the same, an {@link AssertionError} without a message is thrown.
Asserts that <code>actual</code> satisfies the condition specified by <code>matcher</code>. If not, an {@link AssertionError} is thrown with information about the matcher and failing value. Example:
Asserts that <code>actual</code> satisfies the condition specified by <code>matcher</code>. If not, an {@link AssertionError} is thrown with the reason and information about the matcher and failing value. Example:
Asserts that a condition is true. If it isn't it throws an {@link AssertionError} with the given message.
Asserts that a condition is true. If it isn't it throws an {@link AssertionError} without a message.
Fails a test with the given message.
Fails a test with no message.
Assert a bool expression, throwing {@code IllegalStateException} if the test result is {@code false}. Call isTrue if you wish to throw IllegalArgumentException on an assertion failure.
A set of assertion methods useful for writing tests. Only failed assertions are recorded. These methods can be used directly: <code>Assert.assertEquals(...)</code>, however, they read better if they are referenced through static import:
<pre> import org.junit.Assert.*; ... assertEquals(...); </pre>
@see AssertionError