From 3f438510b3aae2372b33d4d976cd10482a07492a Mon Sep 17 00:00:00 2001 From: tangpeng Date: Sat, 30 Mar 2019 07:58:02 +0000 Subject: HTTP/S Modifications Change-Id: Icabaf996d23297d0d5f16601645665a128616105 Issue-ID: HOLMES-203 Signed-off-by: tangpeng --- .../src/test/java/org/onap/holmes/engine/EngineDActiveAppTest.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engine-d/src/test/java/org/onap') diff --git a/engine-d/src/test/java/org/onap/holmes/engine/EngineDActiveAppTest.java b/engine-d/src/test/java/org/onap/holmes/engine/EngineDActiveAppTest.java index 1a5795a..7c9b652 100644 --- a/engine-d/src/test/java/org/onap/holmes/engine/EngineDActiveAppTest.java +++ b/engine-d/src/test/java/org/onap/holmes/engine/EngineDActiveAppTest.java @@ -22,16 +22,19 @@ import org.onap.holmes.common.config.MicroServiceConfig; import org.onap.msb.sdk.discovery.entity.MicroServiceInfo; import org.onap.msb.sdk.discovery.entity.Node; import org.powermock.api.easymock.PowerMock; +import org.powermock.core.classloader.annotations.PowerMockIgnore; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; import org.powermock.reflect.Whitebox; +import static org.easymock.EasyMock.anyObject; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; @PrepareForTest(MicroServiceConfig.class) @RunWith(PowerMockRunner.class) +@PowerMockIgnore("javax.net.ssl.*") public class EngineDActiveAppTest { public static void main(String[] args) throws Exception { @@ -48,6 +51,7 @@ public class EngineDActiveAppTest { serviceAddrInfo[1] = "80"; EasyMock.expect(MicroServiceConfig.getMicroServiceIpAndPort()).andReturn(serviceAddrInfo); EasyMock.expectLastCall(); + EasyMock.expect(MicroServiceConfig.getEnv(anyObject(String.class))).andReturn("true").times(2); PowerMock.replayAll(); MicroServiceInfo msinfo = Whitebox.invokeMethod(engineDActiveApp,"createMicroServiceInfo"); -- cgit 1.2.3-korg