import org.junit.jupiter.api.io.TempDir;
import org.oran.datafile.configuration.SftpConfig;
-public class SftpClientSettingsTest {
+class SftpClientSettingsTest {
@Test
- public void shouldUseFtpStrictHostChecking(@TempDir Path tempDir) throws Exception {
+ void shouldUseFtpStrictHostChecking(@TempDir Path tempDir) throws Exception {
File knowHostsFile = new File(tempDir.toFile(), "known_hosts");
knowHostsFile.createNewFile();
}
@Test
- public void shouldNotUseFtpStrictHostChecking_whenFileDoesNotExist() {
+ void shouldNotUseFtpStrictHostChecking_whenFileDoesNotExist() {
SftpConfig config = createSampleSftpConfigWithStrictHostChecking("unknown_file");
SftpClientSettings sftpClient = new SftpClientSettings(config);
}
@Test
- public void shouldNotUseFtpStrictHostChecking_whenExplicitlySwitchedOff() {
+ void shouldNotUseFtpStrictHostChecking_whenExplicitlySwitchedOff() {
SftpClientSettings sftpClient = new SftpClientSettings(createSampleSftpConfigNoStrictHostChecking());
sftpClient.shouldUseStrictHostChecking();
assertThat(sftpClient.shouldUseStrictHostChecking()).isFalse();