Method |
Description |
assertEquals (boolean expected, boolean actual) |
It compares 2 Boolean values and checks if the values are equal or not. If the values are not equal then it throws AssertionFailedError exception |
assertEquals(byte expected, byte actual) |
It compares 2 byte values and checks if the values are equal or not. If the values are not equal then it throws AssertionFailedError exception |
assertEquals(char expected, char actual) |
It compares 2 character values and checks if the values are equal or not. If the values are not equal then it throws AssertionFailedError exception |
assertEquals(double expected, double actual, double delta) |
It compares 2 double values and checks if the values are equal or not. If the values are not equal then it throws AssertionFailedError exception |
assertEquals(float expected, float actual, float delta) |
It compares 2 float values and checks if the values are equal or not. If the values are not equal then it throws AssertionFailedError exception |
assertEquals(int expected, int actual) |
It compares 2 integer values and checks if the values are equal or not. If the values are not equal then it throws AssertionFailedError exception |
assertEquals(long expected, long actual) |
It compares 2 long values and checks if the values are equal or not. If the values are not equal then it throws AssertionFailedError exception |
assertEquals(Object expected, Object actual) |
It compares 2 Objects values and checks if the values are equal or not. If the values are not equal then it throws AssertionFailedError exception |
assertEquals(short expected, short actual) |
It compares 2 short values and checks if the values are equal or not. If the values are not equal then it throws AssertionFailedError exception |
assertEquals (String message, boolean expected, boolean actual) |
It compares 2 Boolean values and checks if the values are equal or not. If the values are not equal then it prints the exception message followed by the string |
assertEquals (String message, byte expected, byte actual) |
It compares 2 byte values and checks if the values are equal or not. If the values are not equal then it prints the exception message followed by the string |
assertEquals (String message, char expected, char actual) |
It compares 2 Character values and checks if the values are equal or not. If the values are not equal then it prints the exception message followed by the string argument |
assertEquals (String message, double expected, double actual, double delta) |
It compares 2 double values and checks if the values are equal or not. If the values are not equal then it prints the exception message followed by the string argument |
assertEquals (String message, float expected, float actual, float delta) |
It compares 2 float values and checks if the values are equal or not. If the values are not equal then it prints the exception message followed by the string argument |
assertEquals(String message, int expected, int actual) |
It compares 2 integer values and checks if the values are equal or not. If the values are not equal then it prints the exception message followed by the string argument |
assertEquals(String message, long expected, long actual) |
It compares 2 long values and checks if the values are equal or not. If the values are not equal then it prints the exception message followed by the string argument |
assertEquals(String message, Object expected, Object actual) |
It compares 2 Objects values and checks if the values are equal or not. If the values are not equal then it prints the exception message followed by the string argument |
assertEquals(String message, short expected, short actual) |
It compares 2 short values and checks if the values are equal or not. If the values are not equal then it prints the exception message followed by the string argument |
assertEquals(String expected, String actual) |
It compares 2 String values and checks if the values are equal or not. If the values are not equal then it throws AssertionFailedError exception |
assertEquals(String message, String expected, String actual) |
It compares 2 String values and checks if the values are equal or not. If the values are not equal then it prints the exception message followed by the string argument |
Recent Comments