This rule detects JUnit assertions in object equality. These assertions should be made by more specific methods, like assertEquals.public class FooTest extends TestCase { void testCode() { Object a, b; assertTrue(a.equals(b)); // bad usage assertEquals(?a should equals b?, a, b); // good usage } }Additional info can be found at this http://pmd.sourceforge.net/rules/junit.html#UseAssertEqualsInsteadOfAssertTrue site.
| 6 | org.jcoderz.commons.types.PeriodTest |
| [765:7], [782:7], [798:7], [815:7], [912:7], [914:7] | |
| 2 | org.jcoderz.commons.types.DateTest |
| [109:7], [122:7] | |
| 2 | org.jcoderz.commons.util.ObjectUtilTest |
| [52:7], [55:7] | |
| 1 | org.jcoderz.commons.util.Base64UtilTest |
| [340:7] | |
| 1 | org.jcoderz.commons.util.HexUtilTest |
| [182:7] | |