summaryrefslogtreecommitdiffstats
path: root/feature-healthcheck/src
diff options
context:
space:
mode:
authorLiam Fallon <liam.fallon@est.tech>2020-06-16 07:01:36 +0000
committerGerrit Code Review <gerrit@onap.org>2020-06-16 07:01:36 +0000
commit1fdba85a145be36060262d4575995a7752d7a396 (patch)
tree55de7f679aa4e46bc6244d280c276387e08a4017 /feature-healthcheck/src
parent6218853b9a001ef74300ab7d243685950ef32ad6 (diff)
parent6e22f6ba5a83c8e55bec56798e8e4c7a3d4b002b (diff)
Merge "reduce sonar issue - 2 rev"
Diffstat (limited to 'feature-healthcheck/src')
-rw-r--r--feature-healthcheck/src/test/java/org/onap/policy/drools/healthcheck/HealthCheckTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/feature-healthcheck/src/test/java/org/onap/policy/drools/healthcheck/HealthCheckTest.java b/feature-healthcheck/src/test/java/org/onap/policy/drools/healthcheck/HealthCheckTest.java
index 62c6c951..4215aa8c 100644
--- a/feature-healthcheck/src/test/java/org/onap/policy/drools/healthcheck/HealthCheckTest.java
+++ b/feature-healthcheck/src/test/java/org/onap/policy/drools/healthcheck/HealthCheckTest.java
@@ -23,6 +23,7 @@ package org.onap.policy.drools.healthcheck;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
@@ -142,12 +143,12 @@ public class HealthCheckTest {
reports.setDetails(lst);
reports.setHealthy(true);
- assertTrue(lst == reports.getDetails());
- assertEquals(true, reports.isHealthy());
+ assertSame(lst, reports.getDetails());
+ assertTrue(reports.isHealthy());
// flip the flag
reports.setHealthy(false);
- assertEquals(false, reports.isHealthy());
+ assertFalse(reports.isHealthy());
// toString should work with populated data
assertNotNull(reports.toString());