Apply SingleSpaceSeparator Checkstyle module
This commit also fixes its violations. Closes gh-31469
This commit is contained in:
@@ -100,7 +100,7 @@ public class ViewResolverRegistryTests {
|
||||
List<ViewResolver> viewResolvers = this.registry.getViewResolvers();
|
||||
assertThat(viewResolvers).hasSize(1);
|
||||
assertThat(viewResolvers.get(0).getClass()).isEqualTo(ScriptTemplateViewResolver.class);
|
||||
DirectFieldAccessor accessor = new DirectFieldAccessor(viewResolvers.get(0));
|
||||
DirectFieldAccessor accessor = new DirectFieldAccessor(viewResolvers.get(0));
|
||||
assertThat(accessor.getPropertyValue("prefix")).isEqualTo("/");
|
||||
assertThat(accessor.getPropertyValue("suffix")).isEqualTo(".html");
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ class WebClientDataBufferAllocatingTests extends AbstractDataBufferAllocatingTes
|
||||
.setHeader("Content-Type", "text/plain")
|
||||
.setBody("foo bar"));
|
||||
|
||||
Mono<Void> result = this.webClient.get()
|
||||
Mono<Void> result = this.webClient.get()
|
||||
.exchangeToMono(ClientResponse::releaseBody);
|
||||
|
||||
StepVerifier.create(result)
|
||||
@@ -198,7 +198,7 @@ class WebClientDataBufferAllocatingTests extends AbstractDataBufferAllocatingTes
|
||||
.setHeader("Foo", "bar")
|
||||
.setBody("foo bar"));
|
||||
|
||||
Mono<ResponseEntity<Void>> result = this.webClient.get()
|
||||
Mono<ResponseEntity<Void>> result = this.webClient.get()
|
||||
.exchangeToMono(ClientResponse::toBodilessEntity);
|
||||
|
||||
StepVerifier.create(result)
|
||||
|
||||
@@ -92,11 +92,11 @@ public abstract class AbstractRequestMappingIntegrationTests extends AbstractHtt
|
||||
if (out != null) {
|
||||
headers.setAccept(Collections.singletonList(out));
|
||||
}
|
||||
return getRestTemplate().exchange(preparePost(url, headers, body), type);
|
||||
return getRestTemplate().exchange(preparePost(url, headers, body), type);
|
||||
}
|
||||
|
||||
<T> ResponseEntity<T> performPost(String url, HttpHeaders headers, Object body, Class<T> type) {
|
||||
return getRestTemplate().exchange(preparePost(url, headers, body), type);
|
||||
return getRestTemplate().exchange(preparePost(url, headers, body), type);
|
||||
}
|
||||
|
||||
<T> ResponseEntity<T> performPost(String url, MediaType in, Object body, MediaType out, ParameterizedTypeReference<T> type) {
|
||||
|
||||
@@ -83,7 +83,7 @@ public class ExpressionValueMethodArgumentResolverTests {
|
||||
System.setProperty("systemProperty", "22");
|
||||
try {
|
||||
Mono<Object> mono = this.resolver.resolveArgument(
|
||||
this.paramSystemProperty, new BindingContext(), this.exchange);
|
||||
this.paramSystemProperty, new BindingContext(), this.exchange);
|
||||
|
||||
Object value = mono.block();
|
||||
assertThat(value).isEqualTo(22);
|
||||
|
||||
@@ -87,7 +87,7 @@ class HandshakeWebSocketServiceTests {
|
||||
|
||||
@Override
|
||||
public Mono<Void> upgrade(ServerWebExchange exchange, WebSocketHandler webSocketHandler,
|
||||
@Nullable String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory) {
|
||||
@Nullable String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory) {
|
||||
|
||||
this.handshakeInfo = handshakeInfoFactory.get();
|
||||
return Mono.empty();
|
||||
|
||||
Reference in New Issue
Block a user