From d8799f7d82210e042f34ff45cad155a75736c26f Mon Sep 17 00:00:00 2001 From: JohnKeeney Date: Fri, 14 Jan 2022 19:47:50 +0000 Subject: Update a test that is failing on windows Issue-ID: CCSDK-3560 Change-Id: I8e5cc80af234b97ba319fe1bf2551e2b999eb858 Signed-off-by: JohnKeeney --- .../oran/a1policymanagementservice/tasks/RefreshConfigTaskTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'a1-policy-management/src/test/java/org') 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 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()); } -- cgit 1.2.3-korg