Back to Error Prone

AssertEqualsArgumentOrderChecker

docs/bugpattern/AssertEqualsArgumentOrderChecker.md

2.49.0203 B
Original Source

JUnit's assertEquals (and similar) are defined to take the expected value first and the actual value second. Getting these the wrong way round will cause a confusing error message if the assertion fails.