Apply SingleSpaceSeparator Checkstyle module
This commit also fixes its violations. Closes gh-31469
This commit is contained in:
@@ -134,7 +134,7 @@ public class AnnotationExceptionHandlerMethodResolverTests {
|
||||
static class InheritedController extends ExceptionController {
|
||||
|
||||
@Override
|
||||
public void handleIOException() {
|
||||
public void handleIOException() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -480,7 +480,7 @@ public abstract class AbstractStompBrokerRelayIntegrationTests {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "command=" + this.command + ", session=\"" + this.sessionId + "\"";
|
||||
return "command=" + this.command + ", session=\"" + this.sessionId + "\"";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -522,7 +522,7 @@ public class DefaultStompSessionTests {
|
||||
Subscription subscription = this.session.subscribe(subscribeHeaders, frameHandler);
|
||||
|
||||
StompHeaders unsubscribeHeaders = new StompHeaders();
|
||||
unsubscribeHeaders.set(headerName, subscription.getSubscriptionHeaders().getFirst(headerName));
|
||||
unsubscribeHeaders.set(headerName, subscription.getSubscriptionHeaders().getFirst(headerName));
|
||||
subscription.unsubscribe(unsubscribeHeaders);
|
||||
|
||||
Message<byte[]> message = this.messageCaptor.getValue();
|
||||
|
||||
@@ -57,7 +57,7 @@ public class StompEncoderTests {
|
||||
@Test
|
||||
public void encodeFrameWithHeadersThatShouldBeEscaped() {
|
||||
StompHeaderAccessor headers = StompHeaderAccessor.create(StompCommand.DISCONNECT);
|
||||
headers.addNativeHeader("a:\r\n\\b", "alpha:bravo\r\n\\");
|
||||
headers.addNativeHeader("a:\r\n\\b", "alpha:bravo\r\n\\");
|
||||
Message<byte[]> frame = MessageBuilder.createMessage(new byte[0], headers.getMessageHeaders());
|
||||
|
||||
assertThat(new String(encoder.encode(frame))).isEqualTo("DISCONNECT\na\\c\\r\\n\\\\b:alpha\\cbravo\\r\\n\\\\\n\n\0");
|
||||
|
||||
@@ -97,7 +97,7 @@ public class ExecutorSubscribableChannelTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void subscribeTwice() {
|
||||
public void subscribeTwice() {
|
||||
assertThat(this.channel.subscribe(this.handler)).isTrue();
|
||||
assertThat(this.channel.subscribe(this.handler)).isFalse();
|
||||
this.channel.send(this.message);
|
||||
@@ -105,7 +105,7 @@ public class ExecutorSubscribableChannelTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void unsubscribeTwice() {
|
||||
public void unsubscribeTwice() {
|
||||
this.channel.subscribe(this.handler);
|
||||
assertThat(this.channel.unsubscribe(this.handler)).isTrue();
|
||||
assertThat(this.channel.unsubscribe(this.handler)).isFalse();
|
||||
@@ -114,7 +114,7 @@ public class ExecutorSubscribableChannelTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void failurePropagates() {
|
||||
public void failurePropagates() {
|
||||
RuntimeException ex = new RuntimeException();
|
||||
willThrow(ex).given(this.handler).handleMessage(this.message);
|
||||
MessageHandler secondHandler = mock();
|
||||
@@ -130,7 +130,7 @@ public class ExecutorSubscribableChannelTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void concurrentModification() {
|
||||
public void concurrentModification() {
|
||||
this.channel.subscribe(message1 -> channel.unsubscribe(handler));
|
||||
this.channel.subscribe(this.handler);
|
||||
this.channel.send(this.message);
|
||||
|
||||
Reference in New Issue
Block a user