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 2015-2022 the original author or authors.
|
||||
* Copyright 2015-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.
|
||||
@@ -81,7 +81,6 @@ public class FtpTestSupport extends RemoteFileTestSupport {
|
||||
port = listener.getPort();
|
||||
}
|
||||
|
||||
|
||||
@AfterAll
|
||||
public static void stopServer() {
|
||||
server.stop();
|
||||
@@ -123,7 +122,6 @@ public class FtpTestSupport extends RemoteFileTestSupport {
|
||||
this.testUser.setName("TEST_USER");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public User getUserByName(String s) {
|
||||
return this.testUser;
|
||||
|
||||
@@ -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.
|
||||
@@ -34,7 +34,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*/
|
||||
public class FtpInboundOutboundSanitySample {
|
||||
|
||||
|
||||
@Test
|
||||
@Disabled
|
||||
public void testFtpInboundChannelAdapter() throws Exception {
|
||||
|
||||
@@ -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.
|
||||
@@ -186,4 +186,5 @@ public class FtpOutboundGatewayParserTests {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2022 the original author or authors.
|
||||
* Copyright 2016-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.
|
||||
@@ -102,6 +102,7 @@ public class FtpStreamingInboundChannelAdapterParserTests {
|
||||
public boolean isSingleton() {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
@@ -168,7 +168,6 @@ public class FtpInboundRemoteFileSystemSynchronizerTests {
|
||||
assertThat(metadata).isEmpty();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testSyncRemoteFileOnlyOnceByDefault() {
|
||||
File localDirectory = new File("test");
|
||||
@@ -185,7 +184,6 @@ public class FtpInboundRemoteFileSystemSynchronizerTests {
|
||||
|
||||
synchronizer.synchronizeToLocalDirectory(localDirectory);
|
||||
|
||||
|
||||
File[] files = localDirectory.listFiles();
|
||||
assertThat(files.length).isEqualTo(3);
|
||||
|
||||
@@ -215,7 +213,6 @@ public class FtpInboundRemoteFileSystemSynchronizerTests {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static class TestFtpSessionFactory extends AbstractFtpSessionFactory<FTPClient> {
|
||||
|
||||
private final Collection<FTPFile> ftpFiles = new ArrayList<>();
|
||||
|
||||
@@ -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.
|
||||
@@ -215,7 +215,6 @@ public class FtpOutboundTests {
|
||||
context.close();
|
||||
}
|
||||
|
||||
|
||||
public static class TestFtpSessionFactory extends AbstractFtpSessionFactory<FTPClient> {
|
||||
|
||||
@Override
|
||||
|
||||
@@ -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.
|
||||
@@ -55,7 +55,6 @@ import static org.mockito.Mockito.verify;
|
||||
*/
|
||||
class SessionFactoryTests {
|
||||
|
||||
|
||||
@Test
|
||||
void testFtpClientInteraction() throws Exception {
|
||||
final FTPClient client = mock(FTPClient.class);
|
||||
@@ -119,7 +118,6 @@ class SessionFactoryTests {
|
||||
.isThrownBy(() -> sessionFactory.setControlEncoding(null));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
void testClientModes() throws Exception {
|
||||
DefaultFtpSessionFactory sessionFactory = new DefaultFtpSessionFactory();
|
||||
@@ -141,7 +139,6 @@ class SessionFactoryTests {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("unchecked")
|
||||
void testStaleConnection() {
|
||||
|
||||
Reference in New Issue
Block a user