|
|
@ -48,10 +48,6 @@ import static org.mockito.Mockito.when;
|
|
|
|
properties = {"spring.cloud.polaris.namespace=Test", "spring.cloud.polaris.service=TestApp"})
|
|
|
|
properties = {"spring.cloud.polaris.namespace=Test", "spring.cloud.polaris.service=TestApp"})
|
|
|
|
public class PolarisRestTemplateResponseErrorHandlerTest {
|
|
|
|
public class PolarisRestTemplateResponseErrorHandlerTest {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void handleError() throws Exception{
|
|
|
|
public void handleError() throws Exception{
|
|
|
|
ConsumerAPI consumerAPI = mock(ConsumerAPI.class);
|
|
|
|
ConsumerAPI consumerAPI = mock(ConsumerAPI.class);
|
|
|
@ -70,7 +66,6 @@ public class PolarisRestTemplateResponseErrorHandlerTest {
|
|
|
|
when(consumerAPI.unWatchService(null)).thenReturn(true);
|
|
|
|
when(consumerAPI.unWatchService(null)).thenReturn(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SpringBootApplication
|
|
|
|
@SpringBootApplication
|
|
|
|
protected static class TestApplication {
|
|
|
|
protected static class TestApplication {
|
|
|
|
|
|
|
|
|
|
|
|