aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/org
diff options
context:
space:
mode:
authorjinquanni <ni.jinquan@zte.com.cn>2022-03-24 10:08:59 +0800
committerJinquan Ni <ni.jinquan@zte.com.cn>2022-03-24 03:01:42 +0000
commit9d4cedbbc9fab38e581485b3c64a81f898ffa083 (patch)
tree904d567bc138b10b3ce2f3ddd616657e2c71cccd /src/test/java/org
parent385701661e9021d39eccb015f2ec102c52d1b14e (diff)
Fix clm issue
Issue-ID: MSB-654 Signed-off-by: jinquanni <ni.jinquan@zte.com.cn> Change-Id: I4897fefdafb9b46c5f547fb17e663bef75aefa47
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/onap/msb/sdk/discovery/MSBServiceTest.java3
-rw-r--r--src/test/java/org/onap/msb/sdk/httpclient/msb/MSBServiceClientTest.java2
2 files changed, 5 insertions, 0 deletions
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";