reduce sonar issue 32/108932/4
authorTaka Cho <takamune.cho@att.com>
Mon, 8 Jun 2020 16:35:15 +0000 (12:35 -0400)
committerTakamune Cho <takamune.cho@att.com>
Tue, 9 Jun 2020 15:46:57 +0000 (15:46 +0000)
commit4bd5e29a227174f95ab91cc0f46cdaf8ae968e3d
treedb1087d739030975441d73eaee48bf708f74d8d2
parentf7a58b1fc0a9c26ce52f3cffe5b5e0961850beb6
reduce sonar issue

In some conditions for assertTrue, sonarcloud
recommends using assertEquals

Assert.assertTrue(a.equals(b));
Assert.assertTrue(a == b);
Assert.assertTrue(a == null);
Assert.assertTrue(a != null);
Assert.assertFalse(a.equals(b));

Compliant Solution

Assert.assertEquals(a, b);
Assert.assertSame(a, b);
Assert.assertNull(a);
Assert.assertNotNull(a);
Assert.assertNotEquals(a, b);

Issue-ID: POLICY-2616
Change-Id: I6a4b0ac76c0816a8d4bf1914dc96210d20cdff03
Signed-off-by: Taka Cho <takamune.cho@att.com>
feature-active-standby-management/src/test/java/org/onap/policy/drools/activestandby/AllSeemsWellTest.java
feature-active-standby-management/src/test/java/org/onap/policy/drools/activestandby/DroolsPdpObjectTest.java
feature-active-standby-management/src/test/java/org/onap/policy/drools/activestandby/StandbyStateManagementTest.java