Polish
This commit is contained in:
parent
996a7cf013
commit
c0e3ae9042
|
|
@ -49,7 +49,7 @@ public class CloudFoundryWebAnnotationEndpointDiscovererTests {
|
|||
|
||||
@Test
|
||||
public void discovererShouldAddSuppliedExtensionForHealthEndpoint() throws Exception {
|
||||
load(TestConfiguration.class, endpointDiscoverer -> {
|
||||
load(TestConfiguration.class, (endpointDiscoverer) -> {
|
||||
Collection<EndpointInfo<WebOperation>> endpoints = endpointDiscoverer
|
||||
.discoverEndpoints();
|
||||
assertThat(endpoints.size()).isEqualTo(2);
|
||||
|
|
|
|||
|
|
@ -235,9 +235,8 @@ public class ReactiveCloudFoundryActuatorAutoConfigurationTests {
|
|||
this.context.refresh();
|
||||
Collection<EndpointInfo<WebOperation>> endpoints = getHandlerMapping()
|
||||
.getEndpoints();
|
||||
EndpointInfo endpointInfo = (EndpointInfo) (endpoints.toArray()[0]);
|
||||
WebOperation webOperation = (WebOperation) endpointInfo.getOperations()
|
||||
.toArray()[0];
|
||||
EndpointInfo<WebOperation> endpointInfo = endpoints.iterator().next();
|
||||
WebOperation webOperation = endpointInfo.getOperations().iterator().next();
|
||||
ReflectiveOperationInvoker invoker = (ReflectiveOperationInvoker) webOperation
|
||||
.getInvoker();
|
||||
assertThat(ReflectionTestUtils.getField(invoker, "target"))
|
||||
|
|
|
|||
|
|
@ -259,9 +259,8 @@ public class CloudFoundryActuatorAutoConfigurationTests {
|
|||
.getBean("cloudFoundryWebEndpointServletHandlerMapping",
|
||||
CloudFoundryWebEndpointServletHandlerMapping.class)
|
||||
.getEndpoints();
|
||||
EndpointInfo endpointInfo = (EndpointInfo) (endpoints.toArray()[0]);
|
||||
WebOperation webOperation = (WebOperation) endpointInfo.getOperations()
|
||||
.toArray()[0];
|
||||
EndpointInfo<WebOperation> endpointInfo = endpoints.iterator().next();
|
||||
WebOperation webOperation = endpointInfo.getOperations().iterator().next();
|
||||
ReflectiveOperationInvoker invoker = (ReflectiveOperationInvoker) webOperation
|
||||
.getInvoker();
|
||||
assertThat(ReflectionTestUtils.getField(invoker, "target"))
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ public class FreeMarkerAutoConfigurationReactiveIntegrationTests {
|
|||
Mono<View> view = resolver.resolveViewName(viewName, Locale.UK);
|
||||
MockServerWebExchange exchange = MockServerWebExchange
|
||||
.from(MockServerHttpRequest.get("/path"));
|
||||
view.flatMap(v -> v.render(null, MediaType.TEXT_HTML, exchange)).block();
|
||||
view.flatMap((v) -> v.render(null, MediaType.TEXT_HTML, exchange)).block();
|
||||
return exchange;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue