View by Classes

Findings - Overview

code-style UseAssertEqualsInsteadOfAssertTrue (PMD)

Use assertEquals(x, y) instead of assertTrue(x.equals(y))

Further info on the wiki.
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.

6org.jcoderz.commons.types.PeriodTest
 [765:7],  [782:7],  [798:7],  [815:7],  [912:7],  [914:7]
2org.jcoderz.commons.types.DateTest
 [109:7],  [122:7]
2org.jcoderz.commons.util.ObjectUtilTest
 [52:7],  [55:7]
1org.jcoderz.commons.util.Base64UtilTest
 [340:7]
1org.jcoderz.commons.util.HexUtilTest
 [182:7]