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.
| 3 | org.jcoderz.commons.util.IoUtilTest |
| [230:7], [240:7], [266:7] | |
| 2 | org.jcoderz.commons.util.StringUtilTest |
| [186:7], [188:7] | |