Assertion arguments should be passed in the correct order

This commit is contained in:
Alex Golub 2022-04-20 14:01:07 +03:00
parent efaf789e71
commit 2327a11eca
1 changed files with 2 additions and 1 deletions

View File

@ -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