Polishing

This commit is contained in:
Juergen Hoeller
2016-07-26 17:15:15 +02:00
parent 7b564b72a1
commit e03dea1d64
193 changed files with 324 additions and 323 deletions

View File

@@ -3,7 +3,7 @@
package org.springframework.protobuf;
public final class OuterSample {
public class OuterSample {
private OuterSample() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {

View File

@@ -105,7 +105,7 @@ public class DefaultResponseErrorHandlerTests {
// SPR-9406
@Test(expected=UnknownHttpStatusCodeException.class)
@Test(expected = UnknownHttpStatusCodeException.class)
public void unknownStatusCode() throws Exception {
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.TEXT_PLAIN);

View File

@@ -128,7 +128,7 @@ public class StandardServletAsyncWebRequestTests {
verify(timeoutHandler).run();
}
@Test(expected=IllegalStateException.class)
@Test(expected = IllegalStateException.class)
public void setTimeoutDuringConcurrentHandling() {
this.asyncRequest.startAsync();
this.asyncRequest.setTimeout(25L);

View File

@@ -87,7 +87,7 @@ public class WebAsyncManagerTests {
assertTrue(this.asyncManager.isConcurrentHandlingStarted());
}
@Test(expected=IllegalArgumentException.class)
@Test(expected = IllegalArgumentException.class)
public void setAsyncWebRequestAfterAsyncStarted() {
this.asyncWebRequest.startAsync();
this.asyncManager.setAsyncWebRequest(null);

View File

@@ -171,7 +171,7 @@ public class DelegatingFilterProxyTests {
assertNull(targetFilter.filterConfig);
}
@Test(expected=IllegalStateException.class)
@Test(expected = IllegalStateException.class)
public void testDelegatingFilterProxyWithTargetBeanNameAndNoApplicationContext() throws ServletException, IOException {
MockServletContext sc = new MockServletContext();

View File

@@ -72,7 +72,7 @@ public class ErrorsMethodHandlerArgumentResolverTests {
assertSame(actual, bindingResult);
}
@Test(expected=IllegalStateException.class)
@Test(expected = IllegalStateException.class)
public void bindingResultNotFound() throws Exception {
ModelAndViewContainer mavContainer = new ModelAndViewContainer();
mavContainer.addAllAttributes(bindingResult.getModel());
@@ -81,7 +81,7 @@ public class ErrorsMethodHandlerArgumentResolverTests {
resolver.resolveArgument(paramErrors, mavContainer, webRequest, null);
}
@Test(expected=IllegalStateException.class)
@Test(expected = IllegalStateException.class)
public void noBindingResult() throws Exception {
resolver.resolveArgument(paramErrors, new ModelAndViewContainer(), webRequest, null);
}

View File

@@ -104,7 +104,7 @@ public class InitBinderDataBinderFactoryTests {
assertNull(dataBinder.getDisallowedFields());
}
@Test(expected=IllegalStateException.class)
@Test(expected = IllegalStateException.class)
public void returnValueNotExpected() throws Exception {
WebDataBinderFactory factory = createBinderFactory("initBinderReturnValue", WebDataBinder.class);
factory.createBinder(webRequest, null, "invalidName");

View File

@@ -72,7 +72,7 @@ public class HandlerMethodArgumentResolverCompositeTests {
assertEquals("Didn't use the first registered resolver", Integer.valueOf(1), resolvedValue);
}
@Test(expected=IllegalArgumentException.class)
@Test(expected = IllegalArgumentException.class)
public void noSuitableArgumentResolver() throws Exception {
this.resolvers.resolveArgument(paramStr, null, null, null);
}

View File

@@ -112,7 +112,7 @@ public class HandlerMethodReturnValueHandlerCompositeTests {
verifyNoMoreInteractions(responseBodyHandler);
}
@Test(expected=IllegalArgumentException.class)
@Test(expected = IllegalArgumentException.class)
public void noSuitableReturnValueHandler() throws Exception {
this.handlers.handleReturnValue("value", this.stringType, null, null);
}

View File

@@ -29,7 +29,7 @@ import static org.mockito.BDDMockito.*;
* @author Rick Evans
* @author Sam Brannen
*/
public final class ByteArrayMultipartFileEditorTests {
public class ByteArrayMultipartFileEditorTests {
private final ByteArrayMultipartFileEditor editor = new ByteArrayMultipartFileEditor();

View File

@@ -30,7 +30,7 @@ import static org.junit.Assert.*;
* @author Alef Arendsen
* @author Rick Evans
*/
public final class TagUtilsTests {
public class TagUtilsTests {
@Test
public void getScopeSunnyDay() {