View by Classes

Findings - Overview

code-style UseAssertSameInsteadOfAssertTrue (PMD)

Use assertSame(x, y) instead of assertTrue(x==y), or assertNotSame(x,y) vs assertFalse(x==y)

Further info on the wiki.
This rule detects JUnit assertions in object references equality. These assertions should be made by more specific methods, like assertSame, assertNotSame.

public class FooTest extends TestCase {
 void testCode() {
  Object a, b;
  assertTrue(a==b); // bad usage
  assertSame(a, b);  // good usage
 }
}

      

Additional info can be found at this http://pmd.sourceforge.net/rules/junit.html#UseAssertSameInsteadOfAssertTrue site.

2org.jcoderz.commons.types.samples.CopyValueSampleObjectTest
 [58:9],  [75:9]
1org.jcoderz.commons.types.samples.SampleFixPointTest
 [60:9]
1org.jcoderz.commons.connector.http.HttpConnectorBeanTest
 [112:7]
1org.jcoderz.commons.util.HashCodeUtilTest
 [96:7]
1org.jcoderz.commons.LoggableImplTest
 [278:7]
1org.jcoderz.commons.types.samples.BaseClassTest
 [76:9]