Skip to content

Commit

Permalink
pinpoint-apm#745 filter wizard bug fix. incorrect agent mapping
Browse files Browse the repository at this point in the history
 - backport pinpoint-apm#732
 - add testcase
  • Loading branch information
emeroad committed Jul 20, 2015
1 parent 08095d9 commit d81077b
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit d81077b

Please # to comment.