use of org.springframework.cloud.client.discovery.noop.NoopDiscoveryClient in project spring-boot-admin by codecentric.
the class TurbineRouteLocatorTest method test_route_noservice.
@Test(expected = IllegalStateException.class)
public void test_route_noservice() {
ZuulRoute route = new ZuulRoute("/path/**", "turbine");
DiscoveryClient discovery = new NoopDiscoveryClient(null);
TurbineRouteLocator locator = new TurbineRouteLocator(route, "", new ZuulProperties(), discovery);
locator.getMatchingRoute("/path/foo");
}
Aggregations