Open
Description
Page:
https://docs.codewars.com/languages/java/junit
Problem:
In JUnit 4, the optional message
parameter comes first:
assertEquals( "1 + 1 should equal 2", 2, Adder.add(1, 1));
In JUnit 5, it comes last, which breaks compatibility:
assertEquals(2, Adder.add(1, 1), "1 + 1 should equal 2");
Proposed fixes:
- document the optional message parameter for JUnit 4 (it is currently missing from the sample JUnit 4 tests suite)
- add a paragraph about that breaking change somewhere in the page
Metadata
Metadata
Assignees
Labels
No labels