Change-Id: I6d84339a95953e09171eef883f0b3c2fbeb71d96
Issue-ID: HOLMES-118
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
}
private static HttpResponse executeRequest(CloseableHttpClient httpClient, HttpRequestBase httpRequest)
}
private static HttpResponse executeRequest(CloseableHttpClient httpClient, HttpRequestBase httpRequest)
+ throws CorrelationException, IOException {
HttpResponse httpResponse;
try {
httpResponse = httpClient.execute(httpRequest);
HttpResponse httpResponse;
try {
httpResponse = httpClient.execute(httpRequest);
\r
package org.onap.holmes.common.utils;\r
\r
\r
package org.onap.holmes.common.utils;\r
\r
-import com.eclipsesource.jaxrs.consumer.ConsumerFactory;\r
-import javax.ws.rs.QueryParam;\r
-\r
import org.easymock.EasyMock;\r
import org.junit.Rule;\r
import org.junit.Test;\r
import org.easymock.EasyMock;\r
import org.junit.Rule;\r
import org.junit.Test;\r
-import org.junit.runner.RunWith;\r
-import org.onap.holmes.common.exception.CorrelationException;\r
-import org.onap.holmes.common.msb.MicroserviceBusRest;\r
-import org.onap.holmes.common.api.entity.ServiceRegisterEntity;\r
import org.onap.holmes.common.config.MicroServiceConfig;\r
import org.onap.holmes.common.config.MicroServiceConfig;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
import org.onap.msb.sdk.discovery.entity.MicroServiceFullInfo;\r
import org.onap.msb.sdk.discovery.entity.MicroServiceInfo;\r
import org.onap.msb.sdk.httpclient.msb.MSBServiceClient;\r
import org.powermock.api.easymock.PowerMock;\r
import org.powermock.core.classloader.annotations.PowerMockIgnore;\r
import org.powermock.core.classloader.annotations.PrepareForTest;\r
import org.onap.msb.sdk.discovery.entity.MicroServiceFullInfo;\r
import org.onap.msb.sdk.discovery.entity.MicroServiceInfo;\r
import org.onap.msb.sdk.httpclient.msb.MSBServiceClient;\r
import org.powermock.api.easymock.PowerMock;\r
import org.powermock.core.classloader.annotations.PowerMockIgnore;\r
import org.powermock.core.classloader.annotations.PrepareForTest;\r
-import org.powermock.modules.junit4.PowerMockRunner;\r
import org.powermock.modules.junit4.rule.PowerMockRule;\r
\r
@PrepareForTest({MicroServiceConfig.class, MSBServiceClient.class, MSBRegisterUtil.class})\r
import org.powermock.modules.junit4.rule.PowerMockRule;\r
\r
@PrepareForTest({MicroServiceConfig.class, MSBServiceClient.class, MSBRegisterUtil.class})\r