X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=datafilecollector%2Fsrc%2Ftest%2Fjava%2Forg%2Foran%2Fdatafile%2Ftasks%2FFileCollectorTest.java;fp=datafilecollector%2Fsrc%2Ftest%2Fjava%2Forg%2Foran%2Fdatafile%2Ftasks%2FFileCollectorTest.java;h=432e045b08347a019dec04935b646c32022a5f24;hb=a93caaf7243d896161775d590f1ab322dd63ee16;hp=118e9c71823ca19f9fe6fc7ed1e12b356dca8e39;hpb=41a1c82b8b1b30644c85b90487f013ccc8ff7f92;p=nonrtric%2Fplt%2Franpm.git diff --git a/datafilecollector/src/test/java/org/oran/datafile/tasks/FileCollectorTest.java b/datafilecollector/src/test/java/org/oran/datafile/tasks/FileCollectorTest.java index 118e9c7..432e045 100644 --- a/datafilecollector/src/test/java/org/oran/datafile/tasks/FileCollectorTest.java +++ b/datafilecollector/src/test/java/org/oran/datafile/tasks/FileCollectorTest.java @@ -52,7 +52,7 @@ import org.oran.datafile.model.FileReadyMessage; import org.oran.datafile.oauth2.SecurityContext; import reactor.test.StepVerifier; -public class FileCollectorTest { +class FileCollectorTest { final static String DATAFILE_TMPDIR = "/tmp/onap_datafile/"; private static final String PRODUCT_NAME = "NrRadio"; @@ -190,7 +190,7 @@ public class FileCollectorTest { } @Test - public void whenFtpesFile_returnCorrectResponse() throws Exception { + void whenFtpesFile_returnCorrectResponse() throws Exception { FileCollector collectorUndetTest = spy(new FileCollector(securityContext, appConfigMock, counters)); doReturn(ftpesClientMock).when(collectorUndetTest).createFtpesClient(any()); @@ -214,7 +214,7 @@ public class FileCollectorTest { } @Test - public void whenSftpFile_returnCorrectResponse() throws Exception { + void whenSftpFile_returnCorrectResponse() throws Exception { FileCollector collectorUndetTest = spy(new FileCollector(securityContext, appConfigMock, counters)); doReturn(sftpClientMock).when(collectorUndetTest).createSftpClient(any()); @@ -243,7 +243,7 @@ public class FileCollectorTest { } @Test - public void whenHttpFile_returnCorrectResponse() throws Exception { + void whenHttpFile_returnCorrectResponse() throws Exception { FileCollector collectorUndetTest = spy(new FileCollector(securityContext, appConfigMock, counters)); doReturn(dfcHttpClientMock).when(collectorUndetTest).createHttpClient(any()); @@ -275,7 +275,7 @@ public class FileCollectorTest { } @Test - public void whenHttpsFile_returnCorrectResponse() throws Exception { + void whenHttpsFile_returnCorrectResponse() throws Exception { FileCollector collectorUndetTest = spy(new FileCollector(securityContext, appConfigMock, counters)); doReturn(dfcHttpsClientMock).when(collectorUndetTest).createHttpsClient(any()); @@ -307,7 +307,7 @@ public class FileCollectorTest { } @Test - public void whenFtpesFileAlwaysFail_retryAndFail() throws Exception { + void whenFtpesFileAlwaysFail_retryAndFail() throws Exception { FileCollector collectorUndetTest = spy(new FileCollector(securityContext, appConfigMock, counters)); doReturn(ftpesClientMock).when(collectorUndetTest).createFtpesClient(any()); @@ -327,7 +327,7 @@ public class FileCollectorTest { } @Test - public void whenFtpesFileAlwaysFail_failWithoutRetry() throws Exception { + void whenFtpesFileAlwaysFail_failWithoutRetry() throws Exception { FileCollector collectorUndetTest = spy(new FileCollector(securityContext, appConfigMock, counters)); doReturn(ftpesClientMock).when(collectorUndetTest).createFtpesClient(any()); @@ -347,7 +347,7 @@ public class FileCollectorTest { } @Test - public void whenFtpesFileFailOnce_retryAndReturnCorrectResponse() throws Exception { + void whenFtpesFileFailOnce_retryAndReturnCorrectResponse() throws Exception { FileCollector collectorUndetTest = spy(new FileCollector(securityContext, appConfigMock, counters)); doReturn(ftpesClientMock).when(collectorUndetTest).createFtpesClient(any()); doThrow(new DatafileTaskException("Unable to collect file.")).doNothing().when(ftpesClientMock)