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