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

@@ -89,7 +89,7 @@ public class HeadersMethodArgumentResolverTests {
assertEquals("bar", headers.get("foo"));
}
@Test(expected=IllegalStateException.class)
@Test(expected = IllegalStateException.class)
public void resolveArgumentAnnotatedNotMap() throws Exception {
this.resolver.resolveArgument(this.paramAnnotatedNotMap, this.message);
}

View File

@@ -75,7 +75,7 @@ public class MethodMessageHandlerTests {
this.messageHandler.registerHandler(this.testController);
}
@Test(expected=IllegalStateException.class)
@Test(expected = IllegalStateException.class)
public void duplicateMapping() {
this.messageHandler.registerHandler(new DuplicateMappingsController());
}

View File

@@ -163,7 +163,7 @@ public class StompCodecTests {
assertEquals("alpha:bravo\r\n\\", headers.getFirstNativeHeader("a:\r\n\\b"));
}
@Test(expected=StompConversionException.class)
@Test(expected = StompConversionException.class)
public void decodeFrameBodyNotAllowed() {
decode("CONNECT\naccept-version:1.2\n\nThe body of the message\0");
}
@@ -236,7 +236,7 @@ public class StompCodecTests {
assertIncompleteDecode("SEND\ncontent-type:text/plain;charset=U\n\nThe body\0");
}
@Test(expected=StompConversionException.class)
@Test(expected = StompConversionException.class)
public void decodeFrameWithIncorrectTerminator() {
decode("SEND\ncontent-length:23\n\nThe body of the message*");
}