Skip to content

Commit cb1f108

Browse files
committed
spring-projectsGH-8581: Do not overwrite configuration of external provided SshClient
replace JUnit assertDoesNotThrow by AssertJ assertThatNoException in test
1 parent 115dc1e commit cb1f108

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/SftpSessionFactoryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
import org.springframework.core.task.SimpleAsyncTaskExecutor;
3737

3838
import static org.assertj.core.api.Assertions.assertThat;
39+
import static org.assertj.core.api.Assertions.assertThatNoException;
3940
import static org.assertj.core.api.Assertions.fail;
4041
import static org.awaitility.Awaitility.await;
41-
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
4242

4343
/**
4444
* @author Gary Russell
@@ -149,7 +149,7 @@ void externallyProvidedSshClientShouldNotHaveItsConfigurationOverwritten() throw
149149
sftpSessionFactory.setPort(server.getPort());
150150
sftpSessionFactory.setUser("user");
151151

152-
assertDoesNotThrow(() -> sftpSessionFactory.getSession().connect());
152+
assertThatNoException().isThrownBy(() -> sftpSessionFactory.getSession());
153153
}
154154
}
155155
}

0 commit comments

Comments
 (0)