Skip to content

Commit

Permalink
spring-projectsGH-8581: Do not overwrite configuration of external pr…
Browse files Browse the repository at this point in the history
…ovided SshClient

replace JUnit assertDoesNotThrow by AssertJ assertThatNoException in test
  • Loading branch information
azaaiman committed Mar 28, 2023
1 parent 115dc1e commit cb1f108
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
import org.springframework.core.task.SimpleAsyncTaskExecutor;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatNoException;
import static org.assertj.core.api.Assertions.fail;
import static org.awaitility.Awaitility.await;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;

/**
* @author Gary Russell
Expand Down Expand Up @@ -149,7 +149,7 @@ void externallyProvidedSshClientShouldNotHaveItsConfigurationOverwritten() throw
sftpSessionFactory.setPort(server.getPort());
sftpSessionFactory.setUser("user");

assertDoesNotThrow(() -> sftpSessionFactory.getSession().connect());
assertThatNoException().isThrownBy(() -> sftpSessionFactory.getSession());
}
}
}

0 comments on commit cb1f108

Please sign in to comment.