- Assertion arguments should be passed in the correct order
- Include an assertion in tests
- Junit
assertTrue(a == b)
toassertEquals(a,b)
- Remove empty tests without comments
- Remove
public
visibility of JUnit 5 tests - Remove
test
prefix from JUnit 5 tests - Replace JUnit
assertFalse(!<boolean>)
toassertTrue(<boolean>)
- Replace JUnit
assertFalse(a == null)
toassertNotNull(a)
- Replace JUnit
assertFalse(a.equals(b))
toassertNotEquals(a,b)
- Replace JUnit
assertTrue(!<boolean>)
toassertFalse(<boolean>)
- Replace JUnit
assertTrue(a == null)
toassertNull(a)
- Replace JUnit
assertTrue(a.equals(b))
toassertEquals(a,b)
- Testing best practices
assertEquals(a, null)
toassertNull(a)