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
@@ -431,7 +431,7 @@ public class ResolvableTypeTests {
|
||||
interfaces.add(interfaceType.toString());
|
||||
}
|
||||
assertThat(interfaces.toString(), equalTo(
|
||||
"["
|
||||
"["
|
||||
+ "java.io.Serializable, "
|
||||
+ "java.lang.Cloneable, "
|
||||
+ "java.util.List<java.lang.CharSequence>, "
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 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.
|
||||
@@ -31,21 +31,21 @@ import static org.hamcrest.MatcherAssert.*;
|
||||
* @author Rob Winch
|
||||
*/
|
||||
public class StandardReflectionParameterNameDiscoverTests {
|
||||
private ParameterNameDiscoverer parameterNameDiscoverer;
|
||||
private ParameterNameDiscoverer parameterNameDiscoverer;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
parameterNameDiscoverer = new StandardReflectionParameterNameDiscoverer();
|
||||
}
|
||||
@Before
|
||||
public void setup() {
|
||||
parameterNameDiscoverer = new StandardReflectionParameterNameDiscoverer();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getParameterNamesOnInterface() {
|
||||
Method method = ReflectionUtils.findMethod(MessageService.class,"sendMessage", String.class);
|
||||
String[] actualParams = parameterNameDiscoverer.getParameterNames(method);
|
||||
assertThat(actualParams, is(new String[]{"message"}));
|
||||
}
|
||||
@Test
|
||||
public void getParameterNamesOnInterface() {
|
||||
Method method = ReflectionUtils.findMethod(MessageService.class,"sendMessage", String.class);
|
||||
String[] actualParams = parameterNameDiscoverer.getParameterNames(method);
|
||||
assertThat(actualParams, is(new String[]{"message"}));
|
||||
}
|
||||
|
||||
public interface MessageService {
|
||||
void sendMessage(String message);
|
||||
}
|
||||
public interface MessageService {
|
||||
void sendMessage(String message);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
@@ -82,4 +82,4 @@ public class ByteArrayDecoderTests extends AbstractDataBufferAllocatingTestCase
|
||||
.verify();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,4 +73,4 @@ public class ResourceDecoderTests extends AbstractDataBufferAllocatingTestCase {
|
||||
.verify();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
@@ -74,4 +74,4 @@ public class ResourceEncoderTests extends AbstractDataBufferAllocatingTestCase {
|
||||
.verify();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -200,4 +200,4 @@ public class StreamConverterTests {
|
||||
public List rawList;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -537,4 +537,4 @@ public class DataBufferTests extends AbstractDataBufferAllocatingTestCase {
|
||||
release(buffer);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -283,7 +283,7 @@ public class DataBufferUtilsTests extends AbstractDataBufferAllocatingTestCase {
|
||||
assertReleased(bar);
|
||||
assertReleased(baz);
|
||||
}
|
||||
|
||||
|
||||
private static void assertReleased(DataBuffer dataBuffer) {
|
||||
if (dataBuffer instanceof NettyDataBuffer) {
|
||||
ByteBuf byteBuf = ((NettyDataBuffer) dataBuffer).getNativeBuffer();
|
||||
|
||||
@@ -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.
|
||||
@@ -70,4 +70,4 @@ public class PooledDataBufferTests {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
@@ -57,4 +57,4 @@ public class DataBufferTestUtilsTests extends AbstractDataBufferAllocatingTestCa
|
||||
release(buffer);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2009 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.
|
||||
@@ -79,4 +79,4 @@ public class StaxResultTests {
|
||||
assertThat("Invalid result", stringWriter.toString(), isSimilarTo(XML));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user