Use tabs rather than spaces in tests
Update tests to ensure that tabs are used instead of spaces. Also consistently apply a new line at the end of each file. Issue: SPR-16968
This commit is contained in:
committed by
Juergen Hoeller
parent
1c25cec44f
commit
a89e716cc7
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -143,7 +143,7 @@ public class DispatcherHandlerErrorTests {
|
||||
public void requestBodyError() throws Exception {
|
||||
ServerWebExchange exchange = MockServerWebExchange.from(
|
||||
MockServerHttpRequest.post("/request-body").body(Mono.error(EXCEPTION)));
|
||||
|
||||
|
||||
Mono<Void> publisher = this.dispatcherHandler.handle(exchange);
|
||||
|
||||
StepVerifier.create(publisher)
|
||||
|
||||
@@ -184,4 +184,4 @@ public class DefaultClientRequestBuilderTests {
|
||||
.verifyComplete();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,4 +101,4 @@ public class DefaultClientResponseBuilderTests {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,4 +160,4 @@ public class ClientResponseWrapperTests {
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,4 +78,4 @@ public class DefaultServerRequestBuilderTests {
|
||||
.verifyComplete();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -384,4 +384,4 @@ public class DefaultServerResponseBuilderTests {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ public class NestedRouteIntegrationTests extends AbstractRouterFunctionIntegrati
|
||||
return nest(path("/foo/"),
|
||||
route(GET("/bar"), nestedHandler::bar)
|
||||
.andRoute(GET("/baz"), nestedHandler::baz))
|
||||
.andNest(GET("/{foo}"),
|
||||
.andNest(GET("/{foo}"),
|
||||
route(GET("/bar"), nestedHandler::variables).and(
|
||||
nest(GET("/{bar}"),
|
||||
route(GET("/{baz}"), nestedHandler::variables))))
|
||||
|
||||
@@ -129,4 +129,4 @@ public class PathResourceLookupFunctionTests {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,4 +67,4 @@ public class RouterFunctionMappingTests {
|
||||
.verify();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,4 +186,4 @@ public class ServerRequestWrapperTests {
|
||||
assertSame(result, wrapper.bodyToFlux(reference));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ public class CachingResourceResolverTests {
|
||||
|
||||
private static final Duration TIMEOUT = Duration.ofSeconds(5);
|
||||
|
||||
|
||||
|
||||
private Cache cache;
|
||||
|
||||
private ResourceResolverChain chain;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -53,7 +53,7 @@ public class EncodedResourceResolverTests {
|
||||
|
||||
private static final Duration TIMEOUT = Duration.ofSeconds(5);
|
||||
|
||||
|
||||
|
||||
private ResourceResolverChain resolver;
|
||||
|
||||
private List<Resource> locations;
|
||||
|
||||
@@ -32,7 +32,7 @@ public class FixedVersionStrategyTests {
|
||||
|
||||
private static final String PATH = "js/foo.js";
|
||||
|
||||
|
||||
|
||||
private FixedVersionStrategy strategy;
|
||||
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ public class PathResourceResolverTests {
|
||||
|
||||
private static final Duration TIMEOUT = Duration.ofSeconds(5);
|
||||
|
||||
|
||||
|
||||
private final PathResourceResolver resolver = new PathResourceResolver();
|
||||
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ public class ResourceTransformerSupportTests {
|
||||
|
||||
private static final Duration TIMEOUT = Duration.ofSeconds(5);
|
||||
|
||||
|
||||
|
||||
private ResourceTransformerChain chain;
|
||||
|
||||
private TestResourceTransformerSupport transformer;
|
||||
|
||||
@@ -51,7 +51,7 @@ public class ResourceUrlProviderTests {
|
||||
|
||||
private static final Duration TIMEOUT = Duration.ofSeconds(5);
|
||||
|
||||
|
||||
|
||||
private final List<Resource> locations = new ArrayList<>();
|
||||
|
||||
private final ResourceWebHandler handler = new ResourceWebHandler();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -48,7 +48,7 @@ public class WebJarsResourceResolverTests {
|
||||
|
||||
private static final Duration TIMEOUT = Duration.ofSeconds(1);
|
||||
|
||||
|
||||
|
||||
private List<Resource> locations;
|
||||
|
||||
private WebJarsResourceResolver resolver;
|
||||
|
||||
@@ -46,7 +46,7 @@ public class HeadersRequestConditionTests {
|
||||
public void headerPresent() {
|
||||
MockServerWebExchange exchange = MockServerWebExchange.from(get("/").header("Accept", ""));
|
||||
HeadersRequestCondition condition = new HeadersRequestCondition("accept");
|
||||
|
||||
|
||||
assertNotNull(condition.getMatchingCondition(exchange));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -182,4 +182,4 @@ public class HandlerMethodMappingTests {
|
||||
public void handlerMethod2() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -109,4 +109,4 @@ public class RequestParamMapMethodArgumentResolverTests {
|
||||
@RequestParam Mono<Map<?, ?>> paramMono) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,4 +109,4 @@ public class SessionAttributesHandlerTests {
|
||||
private static class TestController {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -60,7 +60,7 @@ public class NashornScriptTemplateTests {
|
||||
|
||||
private MockServerHttpResponse render(String viewUrl, Map<String, Object> model,
|
||||
Class<?> configuration) throws Exception {
|
||||
|
||||
|
||||
ScriptTemplateView view = createViewWithUrl(viewUrl, configuration);
|
||||
MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get("/"));
|
||||
view.renderInternal(model, MediaType.TEXT_HTML, exchange).block();
|
||||
|
||||
Reference in New Issue
Block a user