|
|
@ -17,6 +17,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
package com.tencent.cloud.rpc.enhancement.feign.plugin.reporter;
|
|
|
|
package com.tencent.cloud.rpc.enhancement.feign.plugin.reporter;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
|
|
|
|
import com.tencent.cloud.rpc.enhancement.config.RpcEnhancementReporterProperties;
|
|
|
|
import com.tencent.cloud.rpc.enhancement.config.RpcEnhancementReporterProperties;
|
|
|
|
import com.tencent.cloud.rpc.enhancement.feign.plugin.EnhancedFeignContext;
|
|
|
|
import com.tencent.cloud.rpc.enhancement.feign.plugin.EnhancedFeignContext;
|
|
|
|
import com.tencent.cloud.rpc.enhancement.feign.plugin.EnhancedFeignPluginType;
|
|
|
|
import com.tencent.cloud.rpc.enhancement.feign.plugin.EnhancedFeignPluginType;
|
|
|
@ -83,7 +85,7 @@ public class SuccessPolarisReporterTest {
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void testRun() {
|
|
|
|
public void testRun() {
|
|
|
|
// mock request
|
|
|
|
// mock request
|
|
|
|
Request request = mock(Request.class);
|
|
|
|
Request request = Request.create(Request.HttpMethod.GET, "/", new HashMap<>(), null, null, null);
|
|
|
|
// mock response
|
|
|
|
// mock response
|
|
|
|
Response response = mock(Response.class);
|
|
|
|
Response response = mock(Response.class);
|
|
|
|
doReturn(502).when(response).status();
|
|
|
|
doReturn(502).when(response).status();
|
|
|
|