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:
Phillip Webb
2018-06-25 09:24:30 -07:00
committed by Juergen Hoeller
parent 1c25cec44f
commit a89e716cc7
209 changed files with 528 additions and 529 deletions

View File

@@ -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)

View File

@@ -184,4 +184,4 @@ public class DefaultClientRequestBuilderTests {
.verifyComplete();
}
}
}

View File

@@ -101,4 +101,4 @@ public class DefaultClientResponseBuilderTests {
}
}
}

View File

@@ -160,4 +160,4 @@ public class ClientResponseWrapperTests {
}
}

View File

@@ -78,4 +78,4 @@ public class DefaultServerRequestBuilderTests {
.verifyComplete();
}
}
}

View File

@@ -384,4 +384,4 @@ public class DefaultServerResponseBuilderTests {
}
}
}

View File

@@ -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))))

View File

@@ -129,4 +129,4 @@ public class PathResourceLookupFunctionTests {
}
}
}

View File

@@ -67,4 +67,4 @@ public class RouterFunctionMappingTests {
.verify();
}
}
}

View File

@@ -186,4 +186,4 @@ public class ServerRequestWrapperTests {
assertSame(result, wrapper.bodyToFlux(reference));
}
}
}

View File

@@ -43,7 +43,7 @@ public class CachingResourceResolverTests {
private static final Duration TIMEOUT = Duration.ofSeconds(5);
private Cache cache;
private ResourceResolverChain chain;

View File

@@ -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;

View File

@@ -32,7 +32,7 @@ public class FixedVersionStrategyTests {
private static final String PATH = "js/foo.js";
private FixedVersionStrategy strategy;

View File

@@ -40,7 +40,7 @@ public class PathResourceResolverTests {
private static final Duration TIMEOUT = Duration.ofSeconds(5);
private final PathResourceResolver resolver = new PathResourceResolver();

View File

@@ -43,7 +43,7 @@ public class ResourceTransformerSupportTests {
private static final Duration TIMEOUT = Duration.ofSeconds(5);
private ResourceTransformerChain chain;
private TestResourceTransformerSupport transformer;

View File

@@ -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();

View File

@@ -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;

View File

@@ -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));
}

View File

@@ -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() {
}
}
}
}

View File

@@ -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) {
}
}
}

View File

@@ -109,4 +109,4 @@ public class SessionAttributesHandlerTests {
private static class TestController {
}
}
}

View File

@@ -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();