aboutsummaryrefslogtreecommitdiffstats
path: root/policy-utils
diff options
context:
space:
mode:
authorTaka Cho <takamune.cho@att.com>2020-07-02 11:56:18 -0400
committerTaka Cho <takamune.cho@att.com>2020-07-02 12:34:49 -0400
commit427cbbb9e25f843bcf06d75904f6294ac07180be (patch)
tree46f4abb3a5be369874567bab0016102c6c7bc678 /policy-utils
parent11fe26a917bdd6aa54aa40cb21396df824410d83 (diff)
drools-pdp sonar fix
most of changes are assert statement Issue-ID: POLICY-2616 Change-Id: I3bd3076115d28d8cfabcbe0859cc4b21085e1394 Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'policy-utils')
-rw-r--r--policy-utils/src/test/java/org/onap/policy/drools/utils/TripleTest.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/policy-utils/src/test/java/org/onap/policy/drools/utils/TripleTest.java b/policy-utils/src/test/java/org/onap/policy/drools/utils/TripleTest.java
index 7f04b163..b62c9530 100644
--- a/policy-utils/src/test/java/org/onap/policy/drools/utils/TripleTest.java
+++ b/policy-utils/src/test/java/org/onap/policy/drools/utils/TripleTest.java
@@ -31,32 +31,32 @@ public class TripleTest {
Triple<String, String, String> triple =
new Triple<>("one", "two", "three");
- Assert.assertTrue("one".equals(triple.first()));
- Assert.assertTrue("one".equals(triple.getFirst()));
+ Assert.assertEquals("one", triple.first());
+ Assert.assertEquals("one", triple.getFirst());
- Assert.assertTrue("two".equals(triple.second()));
- Assert.assertTrue("two".equals(triple.getSecond()));
+ Assert.assertEquals("two", triple.second());
+ Assert.assertEquals("two", triple.getSecond());
- Assert.assertTrue("three".equals(triple.third()));
- Assert.assertTrue("three".equals(triple.getThird()));
+ Assert.assertEquals("three", triple.third());
+ Assert.assertEquals("three", triple.getThird());
triple.first("I");
- Assert.assertTrue("I".equals(triple.first()));
+ Assert.assertEquals("I", triple.first());
triple.setFirst("1");
- Assert.assertTrue("1".equals(triple.first()));
+ Assert.assertEquals("1", triple.first());
triple.second("2");
- Assert.assertTrue("2".equals(triple.second()));
+ Assert.assertEquals("2", triple.second());
triple.setSecond("II");
- Assert.assertTrue("II".equals(triple.second()));
+ Assert.assertEquals("II", triple.second());
triple.third("3");
- Assert.assertTrue("3".equals(triple.third()));
+ Assert.assertEquals("3", triple.third());
triple.setThird("III");
- Assert.assertTrue("III".equals(triple.third()));
+ Assert.assertEquals("III", triple.third());
}
} \ No newline at end of file