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 429a713811
commit a538beb16c

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