|
|
|
@ -252,9 +252,8 @@ public class WebEndpointDiscovererTests {
|
|
|
|
|
private void load(Function<EndpointId, Long> timeToLive,
|
|
|
|
|
PathMapper endpointPathMapper, Class<?> configuration,
|
|
|
|
|
Consumer<WebEndpointDiscoverer> consumer) {
|
|
|
|
|
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
|
|
|
|
|
configuration);
|
|
|
|
|
try {
|
|
|
|
|
try (AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
|
|
|
|
|
configuration)) {
|
|
|
|
|
ConversionServiceParameterValueMapper parameterMapper = new ConversionServiceParameterValueMapper(
|
|
|
|
|
DefaultConversionService.getSharedInstance());
|
|
|
|
|
EndpointMediaTypes mediaTypes = new EndpointMediaTypes(
|
|
|
|
@ -267,9 +266,6 @@ public class WebEndpointDiscovererTests {
|
|
|
|
|
Collections.emptyList());
|
|
|
|
|
consumer.accept(discoverer);
|
|
|
|
|
}
|
|
|
|
|
finally {
|
|
|
|
|
context.close();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Map<EndpointId, ExposableWebEndpoint> mapEndpoints(
|
|
|
|
|