Add EmptyLineSeparator Checkstyle rule
* Support "blank lines around" via `spring-framework.xml` IDEA config * Fix all the Checkstyle violations
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -51,7 +51,6 @@ public class ByteStreamWritingMessageHandlerTests {
|
||||
|
||||
private ThreadPoolTaskScheduler scheduler;
|
||||
|
||||
|
||||
@Before
|
||||
public void initialize() {
|
||||
stream = new ByteArrayOutputStream();
|
||||
@@ -71,7 +70,6 @@ public class ByteStreamWritingMessageHandlerTests {
|
||||
scheduler.destroy();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void singleByteArray() {
|
||||
handler.handleMessage(new GenericMessage<byte[]>(new byte[] {1, 2, 3}));
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -55,7 +55,6 @@ public class CharacterStreamWritingMessageHandlerTests {
|
||||
|
||||
private ThreadPoolTaskScheduler scheduler;
|
||||
|
||||
|
||||
@BeforeEach
|
||||
public void initialize() {
|
||||
writer = new StringWriter();
|
||||
@@ -76,7 +75,6 @@ public class CharacterStreamWritingMessageHandlerTests {
|
||||
scheduler.destroy();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void singleString() {
|
||||
handler.handleMessage(new GenericMessage<>("foo"));
|
||||
@@ -190,7 +188,6 @@ public class CharacterStreamWritingMessageHandlerTests {
|
||||
assertThat(writer.toString()).isEqualTo("foo" + newLine + "bar" + newLine);
|
||||
}
|
||||
|
||||
|
||||
private record TestObject(String text) {
|
||||
|
||||
@Override
|
||||
@@ -200,7 +197,6 @@ public class CharacterStreamWritingMessageHandlerTests {
|
||||
|
||||
}
|
||||
|
||||
|
||||
private static class TestTrigger implements Trigger {
|
||||
|
||||
private final AtomicBoolean hasRun = new AtomicBoolean();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -69,7 +69,6 @@ public class ConsoleInboundChannelAdapterParserTests {
|
||||
stream.reset();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void adapterWithDefaultCharset() {
|
||||
SourcePollingChannelAdapter adapter = context.getBean("adapterWithDefaultCharset.adapter",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -153,7 +153,6 @@ public class ConsoleOutboundChannelAdapterParserTests {
|
||||
DirectFieldAccessor dfa = new DirectFieldAccessor(this.stderrAdapterHandler);
|
||||
dfa.setPropertyValue("writer", bufferedWriter);
|
||||
|
||||
|
||||
this.stderrAdapterHandler.handleMessage(new GenericMessage<String>("bar"));
|
||||
|
||||
verify(bufferedWriter, times(1)).write(eq("bar"));
|
||||
@@ -212,4 +211,5 @@ public class ConsoleOutboundChannelAdapterParserTests {
|
||||
this.stdoutInsideNestedChain.send(new GenericMessage<String>("foo"));
|
||||
verify(bufferedWriter, times(1)).write(eq("foobar"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -47,7 +47,6 @@ public class DefaultConfigurationTests {
|
||||
@Autowired
|
||||
private ApplicationContext context;
|
||||
|
||||
|
||||
@Test
|
||||
public void verifyErrorChannel() {
|
||||
Object errorChannel = context.getBean("errorChannel");
|
||||
|
||||
Reference in New Issue
Block a user