From d81077b2c06954324634259a9469e6fce711662c Mon Sep 17 00:00:00 2001 From: Woonduk Kang Date: Mon, 20 Jul 2015 16:48:58 +0900 Subject: [PATCH] #745 filter wizard bug fix. incorrect agent mapping - backport #732 - add testcase --- .../web/applicationmap/ServerInstanceListTest.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/web/src/test/java/com/navercorp/pinpoint/web/applicationmap/ServerInstanceListTest.java b/web/src/test/java/com/navercorp/pinpoint/web/applicationmap/ServerInstanceListTest.java index a9b22e41623d..fad0981ab419 100644 --- a/web/src/test/java/com/navercorp/pinpoint/web/applicationmap/ServerInstanceListTest.java +++ b/web/src/test/java/com/navercorp/pinpoint/web/applicationmap/ServerInstanceListTest.java @@ -17,7 +17,7 @@ package com.navercorp.pinpoint.web.applicationmap; import com.navercorp.pinpoint.common.bo.AgentInfoBo; -import com.navercorp.pinpoint.common.trace.ServiceType; +import com.navercorp.pinpoint.common.ServiceType; import org.junit.Assert; import org.junit.Test; @@ -54,14 +54,12 @@ public void testGetAgentIdList() throws Exception { public static AgentInfoBo createAgentInfo(String agentId, String hostName) { AgentInfoBo.Builder agentInfoBuilder = new AgentInfoBo.Builder(); - agentInfoBuilder.setAgentId(agentId); + agentInfoBuilder.agentId(agentId); ServiceType serviceType = ServiceType.TEST_STAND_ALONE; - agentInfoBuilder.setServiceTypeCode(serviceType.getCode()); - // TODO FIX api - agentInfoBuilder.setServiceType(serviceType); + agentInfoBuilder.serviceType(serviceType); - agentInfoBuilder.setHostName(hostName); + agentInfoBuilder.hostName(hostName); return agentInfoBuilder.build(); }