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