From 427cbbb9e25f843bcf06d75904f6294ac07180be Mon Sep 17 00:00:00 2001 From: Taka Cho Date: Thu, 2 Jul 2020 11:56:18 -0400 Subject: drools-pdp sonar fix most of changes are assert statement Issue-ID: POLICY-2616 Change-Id: I3bd3076115d28d8cfabcbe0859cc4b21085e1394 Signed-off-by: Taka Cho --- .../org/onap/policy/drools/utils/TripleTest.java | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'policy-utils/src') 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 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 -- cgit 1.2.3-korg