diff options
author | JohnKeeney <john.keeney@est.tech> | 2023-03-31 15:27:16 +0100 |
---|---|---|
committer | John Keeney <John.Keeney@est.tech> | 2023-03-31 14:50:04 +0000 |
commit | 2d985bd69d9425ab8f747aec0550674034d7d7ac (patch) | |
tree | 0210b4674bfe71d8d8d75b1468a7b9fed812d4e8 /a1-policy-management/src/test/java | |
parent | a9cc0c3bfbc42892f3df007a27b9730b6d5a17a1 (diff) |
Fix some issues identified by sonar
Change-Id: Ia1f1ebb3c0dec111d4544d750f983ebb7976d761
Issue-ID: CCSDK-3882
Signed-off-by: JohnKeeney <john.keeney@est.tech>
Diffstat (limited to 'a1-policy-management/src/test/java')
2 files changed, 4 insertions, 3 deletions
diff --git a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/MetersTest.java b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/MetersTest.java index 459eb801..9696aabc 100644 --- a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/MetersTest.java +++ b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/MetersTest.java @@ -42,7 +42,7 @@ import org.onap.ccsdk.oran.a1policymanagementservice.repository.Ric; import org.onap.ccsdk.oran.a1policymanagementservice.repository.Rics; @ExtendWith(MockitoExtension.class) -public class MetersTest { +class MetersTest { private static final String POLICY_TYPE_1_NAME = "type1"; private static final PolicyType POLICY_TYPE_1 = PolicyType.builder().id(POLICY_TYPE_1_NAME).schema("").build(); diff --git a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTaskTest.java b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTaskTest.java index d84359ad..bfdb58ca 100644 --- a/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTaskTest.java +++ b/a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTaskTest.java @@ -113,8 +113,9 @@ class RefreshConfigTaskTest { verify(refreshTaskUnderTest.rics, times(2)).put(any(Ric.class)); java.util.Collection<RicConfig> ricConfigs = appConfig.getRicConfigs(); - assertThat(ricConfigs).isNotNull(); - assertThat(ricConfigs).hasSize(2); + assertThat(ricConfigs) + .isNotNull() + .hasSize(2); } @Test |