From 9d4cedbbc9fab38e581485b3c64a81f898ffa083 Mon Sep 17 00:00:00 2001 From: jinquanni Date: Thu, 24 Mar 2022 10:08:59 +0800 Subject: Fix clm issue Issue-ID: MSB-654 Signed-off-by: jinquanni Change-Id: I4897fefdafb9b46c5f547fb17e663bef75aefa47 --- src/test/java/org/onap/msb/sdk/discovery/MSBServiceTest.java | 3 +++ .../java/org/onap/msb/sdk/httpclient/msb/MSBServiceClientTest.java | 2 ++ 2 files changed, 5 insertions(+) (limited to 'src/test/java') diff --git a/src/test/java/org/onap/msb/sdk/discovery/MSBServiceTest.java b/src/test/java/org/onap/msb/sdk/discovery/MSBServiceTest.java index b6936be..f969c10 100644 --- a/src/test/java/org/onap/msb/sdk/discovery/MSBServiceTest.java +++ b/src/test/java/org/onap/msb/sdk/discovery/MSBServiceTest.java @@ -29,9 +29,12 @@ import org.onap.msb.sdk.discovery.util.JacksonJsonUtil; import org.powermock.api.mockito.PowerMockito; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; +import org.powermock.core.classloader.annotations.PowerMockIgnore; @RunWith(PowerMockRunner.class) @PrepareForTest({HttpClientUtil.class}) +@PowerMockIgnore("jdk.internal.reflect.*") + public class MSBServiceTest { private static final String MOCK_MSB_URL_REG_UPDATE_TRUE = "http://127.0.0.1:10081/api/microservices/v1/services?createOrUpdate=true"; diff --git a/src/test/java/org/onap/msb/sdk/httpclient/msb/MSBServiceClientTest.java b/src/test/java/org/onap/msb/sdk/httpclient/msb/MSBServiceClientTest.java index 92e198e..ce00d8b 100644 --- a/src/test/java/org/onap/msb/sdk/httpclient/msb/MSBServiceClientTest.java +++ b/src/test/java/org/onap/msb/sdk/httpclient/msb/MSBServiceClientTest.java @@ -25,9 +25,11 @@ import org.onap.msb.sdk.discovery.util.JacksonJsonUtil; import org.powermock.api.mockito.PowerMockito; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; +import org.powermock.core.classloader.annotations.PowerMockIgnore; @RunWith(PowerMockRunner.class) @PrepareForTest({HttpClientUtil.class}) +@PowerMockIgnore("jdk.internal.reflect.*") public class MSBServiceClientTest { private static final String MOCK_MSB_URL_REG_UPDATE_TRUE = "http://127.0.0.1:10081/api/microservices/v1/services?createOrUpdate=true"; -- cgit 1.2.3-korg