Polishing
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user