Assertion arguments should be passed in the correct order
This commit is contained in:
parent
efaf789e71
commit
2327a11eca
|
@ -17,7 +17,8 @@ class ExceptionUnitTest {
|
|||
Throwable exception = assertThrows(UnsupportedOperationException.class, () -> {
|
||||
throw new UnsupportedOperationException("Not supported");
|
||||
});
|
||||
assertEquals(exception.getMessage(), "Not supported");
|
||||
|
||||
assertEquals("Not supported", exception.getMessage());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue