summaryrefslogtreecommitdiffstats
path: root/a1-policy-management/src/test
diff options
context:
space:
mode:
authorJohnKeeney <john.keeney@est.tech>2022-01-14 19:47:50 +0000
committerKAPIL SINGAL <ks220y@att.com>2022-01-14 20:08:40 +0000
commitd8799f7d82210e042f34ff45cad155a75736c26f (patch)
treea13a409f94b4f9b451cd62d3cad101fd1f249aaf /a1-policy-management/src/test
parent01162eadfe8aa3b14694b149b76773d8f64d675e (diff)
Update a test that is failing on windows
Issue-ID: CCSDK-3560 Change-Id: I8e5cc80af234b97ba319fe1bf2551e2b999eb858 Signed-off-by: JohnKeeney <john.keeney@est.tech>
Diffstat (limited to 'a1-policy-management/src/test')
-rw-r--r--a1-policy-management/src/test/java/org/onap/ccsdk/oran/a1policymanagementservice/tasks/RefreshConfigTaskTest.java6
1 files changed, 4 insertions, 2 deletions
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 6c7607e9..874929a5 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
@@ -22,6 +22,7 @@ package org.onap.ccsdk.oran.a1policymanagementservice.tasks;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.times;
@@ -114,7 +115,7 @@ class RefreshConfigTaskTest {
.verify();
// Then
- verify(refreshTaskUnderTest).loadConfigurationFromFile();
+ verify(refreshTaskUnderTest, atLeastOnce()).loadConfigurationFromFile();
verify(refreshTaskUnderTest, times(2)).addRic(any(Ric.class));
@@ -153,7 +154,8 @@ class RefreshConfigTaskTest {
}
private static Optional<JsonObject> getCorrectJson() throws IOException {
- URL url = ApplicationConfigParser.class.getClassLoader().getResource("test_application_configuration.json");
+ URL url = ApplicationConfigParser.class.getClassLoader()
+ .getResource("test_application_configuration.json");
String string = Resources.toString(url, Charsets.UTF_8);
return Optional.of(JsonParser.parseString(string).getAsJsonObject());
}