junit.framework.Assert.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static void | assertEquals(String
The message message, Object The expected value expected, Object The actual value actual)Asserts that two objects are equal. |
| public static void | assertEquals(Object
The expected value expected, Object The actual value actual)Asserts that two objects are equal. |
| public static void | assertEquals(String
The message message, String The expected value expected, String The actual value actual)Asserts that two Strings are equal. |
| public static void | assertEquals(String
The expected value expected, String The actual value actual)Asserts that two Strings are equal. |
| public static void | assertEquals(String
The message message, double The expected value expected, double The actual value actual, double The delta value delta)Asserts that two doubles are equal concerning a delta. |
| public static void | assertEquals(double
The expected value expected, double The actual value actual, double The delta value delta)Asserts that two doubles are equal concerning a delta. |
| public static void | assertEquals(String
The message message, float The expected value expected, float The actual value actual, float The delta value delta)Asserts that two floats are equal concerning a delta. |
| public static void | assertEquals(float
The expected value expected, float The actual value actual, float The delta value delta)Asserts that two floats are equal concerning a delta. |
| public static void | assertEquals(String
The message message, long The expected value expected, long The actual value actual)Asserts that two longs are equal. |
| public static void | assertEquals(long
The expected value expected, long The actual value actual)Asserts that two longs are equal. |
| public static void | assertEquals(String
The message message, boolean The expected value expected, boolean The actual value actual)Asserts that two booleans are equal. |
| public static void | assertEquals(boolean
The expected value expected, boolean The actual value actual)Asserts that two booleans are equal. |
| public static void | assertEquals(String
The message message, byte The expected value expected, byte The actual value actual)Asserts that two bytes are equal. |
| public static void | assertEquals(byte
The expected value expected, byte The actual value actual)Asserts that two bytes are equal. |
| public static void | assertEquals(String
The message message, char The expected value expected, char The actual value actual)Asserts that two chars are equal. |
| public static void | assertEquals(char
The expected value expected, char The actual value actual)Asserts that two chars are equal. |
| public static void | assertEquals(String
The message message, short The expected value expected, short The actual value actual)Asserts that two shorts are equal. |
| public static void | assertEquals(short
The expected value expected, short The actual value actual)Asserts that two shorts are equal. |
| public static void | assertEquals(String
The message message, int The expected value expected, int The actual value actual)Asserts that two ints are equal. |
| public static void | assertEquals(int
The expected value expected, int The actual value actual)Asserts that two ints are equal. |
| public static void | |
| public static void | |
| public static void | assertFalse(String
The message message, boolean The actual condition condition)Asserts that a condition is false. |
| public static void | |
| public static void | |
| public static void | assertNotNull(String
The message message, Object The actual object object)Asserts that an object isn't null. |
| public static void | assertNotSame(String
The message message, Object The expected value expected, Object The actual value actual)Asserts that two objects refer to the same object. |
| public static void | assertNotSame(Object
The expected value expected, Object The actual value actual)Asserts that two objects refer to the same object. |
| public static void | |
| public static void | assertNull(String
The message message, Object The actual object object)Asserts that an object is null. |
| public static void | assertSame(String
The message message, Object The expected value expected, Object The actual value actual)Asserts that two objects refer to the same object. |
| public static void | assertSame(Object
The expected value expected, Object The actual value actual)Asserts that two objects refer to the same object. |
| public static void | assertTrue(String
The message message, boolean The actual condition condition)Asserts that a condition is true. |
| public static void | |
| public static void | |
| public static void | |
| private static void | |
| private static void | |
| private static void | |
| pack-priv static String |
| AssertJUnit | back to summary |
|---|---|
| protected AssertJUnit() Protect constructor since it is a static only class | |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(String message, Object expected, Object actual) Asserts that two objects are equal. If they are not an AssertionError is thrown with the given message. | |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(Object expected, Object actual) Asserts that two objects are equal. If they are not an AssertionError is thrown. | |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(String message, String expected, String actual) Asserts that two Strings are equal. | |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(String expected, String actual) Asserts that two Strings are equal. | |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(String message, double expected, double actual, double delta) Asserts that two doubles are equal concerning a delta. If they are not an AssertionError is thrown with the given message. If the expected value is infinity then the delta value is ignored.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(double expected, double actual, double delta) Asserts that two doubles are equal concerning a delta. If the expected value is infinity then the delta value is ignored.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(String message, float expected, float actual, float delta) Asserts that two floats are equal concerning a delta. If they are not an AssertionError is thrown with the given message. If the expected value is infinity then the delta value is ignored.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(float expected, float actual, float delta) Asserts that two floats are equal concerning a delta. If the expected value is infinity then the delta value is ignored.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(String message, long expected, long actual) Asserts that two longs are equal. If they are not an AssertionError is thrown with the given message.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(long expected, long actual) Asserts that two longs are equal.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(String message, boolean expected, boolean actual) Asserts that two booleans are equal. If they are not an AssertionError is thrown with the given message.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(boolean expected, boolean actual) Asserts that two booleans are equal.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(String message, byte expected, byte actual) Asserts that two bytes are equal. If they are not an AssertionError is thrown with the given message.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(byte expected, byte actual) Asserts that two bytes are equal.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(String message, char expected, char actual) Asserts that two chars are equal. If they are not an AssertionError is thrown with the given message.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(char expected, char actual) Asserts that two chars are equal.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(String message, short expected, short actual) Asserts that two shorts are equal. If they are not an AssertionError is thrown with the given message.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(short expected, short actual) Asserts that two shorts are equal.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(String message, int expected, int actual) Asserts that two ints are equal. If they are not an AssertionError is thrown with the given message.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(int expected, int actual) Asserts that two ints are equal.
| |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(final byte[] expected, final byte[] actual) | |
| assertEquals | back to summary |
|---|---|
| public static void assertEquals(final String message, final byte[] expected, final byte[] actual) | |
| assertFalse | back to summary |
|---|---|
| public static void assertFalse(String message, boolean condition) Asserts that a condition is false. If it isn't it throws an AssertionError with the given message.
| |
| assertFalse | back to summary |
|---|---|
| public static void assertFalse(boolean condition) Asserts that a condition is false. If it isn't it throws an AssertionError.
| |
| assertNotNull | back to summary |
|---|---|
| public static void assertNotNull(Object object) Asserts that an object isn't null.
| |
| assertNotNull | back to summary |
|---|---|
| public static void assertNotNull(String message, Object object) Asserts that an object isn't null. If it is an AssertionError is thrown with the given message. | |
| assertNotSame | back to summary |
|---|---|
| public static void assertNotSame(String message, Object expected, Object actual) Asserts that two objects refer to the same object. If they are not an AssertionError is thrown with the given message. | |
| assertNotSame | back to summary |
|---|---|
| public static void assertNotSame(Object expected, Object actual) Asserts that two objects refer to the same object. If they are not the same an AssertionError is thrown. | |
| assertNull | back to summary |
|---|---|
| public static void assertNull(Object object) Asserts that an object is null.
| |
| assertNull | back to summary |
|---|---|
| public static void assertNull(String message, Object object) Asserts that an object is null. If it is not an AssertionError is thrown with the given message. | |
| assertSame | back to summary |
|---|---|
| public static void assertSame(String message, Object expected, Object actual) Asserts that two objects refer to the same object. If they are not an AssertionError is thrown with the given message. | |
| assertSame | back to summary |
|---|---|
| public static void assertSame(Object expected, Object actual) Asserts that two objects refer to the same object. If they are not the same an AssertionError is thrown. | |
| assertTrue | back to summary |
|---|---|
| public static void assertTrue(String message, boolean condition) Asserts that a condition is true. If it isn't it throws an AssertionError with the given message.
| |
| assertTrue | back to summary |
|---|---|
| public static void assertTrue(boolean condition) Asserts that a condition is true. If it isn't it throws an AssertionError.
| |
| fail | back to summary |
|---|---|
| public static void fail(String message) Fails a test with the given message.
| |
| fail | back to summary |
|---|---|
| public static void fail() Fails a test with no message. | |
| failNotEquals | back to summary |
|---|---|
| private static void failNotEquals(String message, Object expected, Object actual) | |
| failNotSame | back to summary |
|---|---|
| private static void failNotSame(String message, Object expected, Object actual) | |
| failSame | back to summary |
|---|---|
| private static void failSame(String message) | |
| format | back to summary |
|---|---|
| pack-priv static String format(String message, Object expected, Object actual) | |