X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=datafilecollector%2Fsrc%2Ftest%2Fjava%2Forg%2Foran%2Fdatafile%2Fftp%2FSftpClientSettingsTest.java;h=d8400bf669212e9e00102663e63546dc9831a94f;hb=5a2b5a8c4af4e390224db81fa546c780b7ab265c;hp=bbce5efd5d0f04265531548f41e3d22070f05701;hpb=f0af18429aec79a590835103fedd753ee5ea93a9;p=nonrtric%2Fplt%2Franpm.git diff --git a/datafilecollector/src/test/java/org/oran/datafile/ftp/SftpClientSettingsTest.java b/datafilecollector/src/test/java/org/oran/datafile/ftp/SftpClientSettingsTest.java index bbce5ef..d8400bf 100644 --- a/datafilecollector/src/test/java/org/oran/datafile/ftp/SftpClientSettingsTest.java +++ b/datafilecollector/src/test/java/org/oran/datafile/ftp/SftpClientSettingsTest.java @@ -26,10 +26,10 @@ import org.junit.jupiter.api.Test; 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(); @@ -40,7 +40,7 @@ public class SftpClientSettingsTest { } @Test - public void shouldNotUseFtpStrictHostChecking_whenFileDoesNotExist() { + void shouldNotUseFtpStrictHostChecking_whenFileDoesNotExist() { SftpConfig config = createSampleSftpConfigWithStrictHostChecking("unknown_file"); SftpClientSettings sftpClient = new SftpClientSettings(config); @@ -49,7 +49,7 @@ public class SftpClientSettingsTest { } @Test - public void shouldNotUseFtpStrictHostChecking_whenExplicitlySwitchedOff() { + void shouldNotUseFtpStrictHostChecking_whenExplicitlySwitchedOff() { SftpClientSettings sftpClient = new SftpClientSettings(createSampleSftpConfigNoStrictHostChecking()); sftpClient.shouldUseStrictHostChecking(); assertThat(sftpClient.shouldUseStrictHostChecking()).isFalse();