aboutsummaryrefslogtreecommitdiffstats
path: root/a1-policy-management/src/test/java/org/onap
diff options
context:
space:
mode:
authorelinuxhenrik <henrik.b.andersson@est.tech>2021-06-07 11:14:41 +0200
committerelinuxhenrik <henrik.b.andersson@est.tech>2021-06-07 11:14:41 +0200
commit5e8cf616cae25029be31104a23f9b20ca0a6a035 (patch)
tree1f91c5b72da990b96aa677ab5290b2d1c108629f /a1-policy-management/src/test/java/org/onap
parent93c73ff0d5ab9b613acbb07936f672b8c79283e1 (diff)
Fix Sonar issues
Issue-ID: CCSDK-3255 Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech> Change-Id: Iaf070882fac078d3441748b6dfc7218b1ac1ab31
Diffstat (limited to 'a1-policy-management/src/test/java/org/onap')
-rw-r--r--a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java
index 9c9331da..ab9b7266 100644
--- a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java
+++ b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v2/ApplicationTest.java
@@ -249,7 +249,7 @@ class ApplicationTest {
// check that the service can be deleted
this.services.remove(SERVICE);
servicesRestored = new Services(this.applicationConfig);
- assertThat(servicesRestored.size()).isEqualTo(0);
+ assertThat(servicesRestored.size()).isZero();
}
@Test
@@ -271,7 +271,7 @@ class ApplicationTest {
// Test that the type has been synched
Ric addedRic = this.rics.getRic(RIC);
- assertThat(addedRic.getSupportedPolicyTypes().size()).isEqualTo(1);
+ assertThat(addedRic.getSupportedPolicyTypes()).hasSize(1);
assertThat(addedRic.getSupportedPolicyTypes().iterator().next().getId()).isEqualTo(TYPE);
// Check that a service callback for the AVAILABLE RIC is invoked
@@ -298,9 +298,9 @@ class ApplicationTest {
// Check that no service callback for the UNAVAILABLE RIC is invoked
RappSimulatorController.TestResults receivedCallbacks = rAppSimulator.getTestResults();
- assertThat(receivedCallbacks.getReceivedInfo().size()).isEqualTo(0);
+ assertThat(receivedCallbacks.getReceivedInfo()).isEmpty();
- // Run a synch and check that the AVAILABLE notificationis received
+ // Run a synch and check that the AVAILABLE notification is received
a1ClientFactory.reset();
supervision.checkAllRics();
waitForRicState(RIC, RicState.AVAILABLE);