diff options
author | waynedunican <wayne.dunican@est.tech> | 2020-08-07 09:51:52 +0100 |
---|---|---|
committer | waynedunican <wayne.dunican@est.tech> | 2020-08-10 11:34:03 +0100 |
commit | 09212e0d7326c2933ed437ee36188a241b8cf900 (patch) | |
tree | 03f33a3a95ab0aa086c38e22c1fd0ffdb715fa94 /client | |
parent | a926cdc113b5fad19a34dbf45e66bd7cbb5ed6e0 (diff) |
SONAR assertion cleanup
Replaced assertions to not have the same actual and expected expression
in apex-pdp
Issue-ID: POLICY-2761
Change-Id: I2bf45a3cc4411bd39f93f9d0b8c8e56dd318281e
Signed-off-by: waynedunican <wayne.dunican@est.tech>
Diffstat (limited to 'client')
-rw-r--r-- | client/client-monitoring/src/test/java/org/onap/policy/apex/client/monitoring/rest/RestResourceTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/client-monitoring/src/test/java/org/onap/policy/apex/client/monitoring/rest/RestResourceTest.java b/client/client-monitoring/src/test/java/org/onap/policy/apex/client/monitoring/rest/RestResourceTest.java index 469f09586..e8e7e9251 100644 --- a/client/client-monitoring/src/test/java/org/onap/policy/apex/client/monitoring/rest/RestResourceTest.java +++ b/client/client-monitoring/src/test/java/org/onap/policy/apex/client/monitoring/rest/RestResourceTest.java @@ -237,8 +237,8 @@ public class RestResourceTest { assertTrue(slidingWindowList0.add("Howdy")); assertNotNull(slidingWindowList0); - assertEquals(slidingWindowList0, slidingWindowList0); - + // disabling sonar because this code tests the equals() method + assertEquals(slidingWindowList0, slidingWindowList0); // NOSONAR ApexMonitoringRestResource.SlidingWindowList<String> slidingWindowList1 = restResource.new SlidingWindowList<>( 2); ApexMonitoringRestResource.SlidingWindowList<String> slidingWindowList2 = restResource.new SlidingWindowList<>( |