summaryrefslogtreecommitdiffstats
path: root/holmes-actions/src/main
diff options
context:
space:
mode:
author6092002067 <wu.youbo@zte.com.cn>2017-03-14 19:12:07 +0800
committer6092002067 <wu.youbo@zte.com.cn>2017-03-14 19:12:07 +0800
commit29bf80d11209d1c4294cd0738f288e65f1be4a41 (patch)
treeec9cfc60a3866c2837c02f9c0d7a89bd592cb68d /holmes-actions/src/main
parente9d903e5f0c762e11d443994eac2ced51afbe3e3 (diff)
Add UT for actions
Issue-ID: HOLMES-50 Change-Id: I295a72e8a8b522e48e43b8ee32152bdf71656e4d Signed-off-by: youbowu <wu.youbo@zte.com.cn>
Diffstat (limited to 'holmes-actions/src/main')
-rw-r--r--holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java b/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java
index e18a15c..91e28a6 100644
--- a/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java
+++ b/holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java
@@ -19,7 +19,6 @@ package org.openo.holmes.common.utils;
import com.eclipsesource.jaxrs.consumer.ConsumerFactory;
import java.io.IOException;
import lombok.extern.slf4j.Slf4j;
-import org.glassfish.jersey.client.ClientConfig;
import org.jvnet.hk2.annotations.Service;
import org.openo.holmes.common.api.entity.ServiceRegisterEntity;
import org.openo.holmes.common.config.MicroServiceConfig;
@@ -49,12 +48,11 @@ public class MSBRegisterUtil {
}
private boolean inner_register(ServiceRegisterEntity entity) {
- ClientConfig config = new ClientConfig();
try {
log.info("msbServerAddr:" + MicroServiceConfig.getMsbServerAddr());
log.info("entity:" + entity);
MicroserviceBusRest resourceserviceproxy = ConsumerFactory.createConsumer(
- MicroServiceConfig.getMsbServerAddr(), config, MicroserviceBusRest.class);
+ MicroServiceConfig.getMsbServerAddr(), MicroserviceBusRest.class);
resourceserviceproxy.registerServce("false", entity);
} catch (Exception error) {
log.error("microservice register failed!" + error.getMessage());