+
+ @Test
+ void testCreateInputStream() throws IOException, URISyntaxException {
+ Path trustCaPath = Paths.get(getClass().getResource("/org/oran/datafile/datastore/file.txt").toURI());
+ InputStream actualCreateInputStreamResult = clientUnderTestSpy.createInputStream(trustCaPath);
+ assertNotNull(actualCreateInputStreamResult);
+ }
+
+ @Test
+ void testCreateOutputStream() throws IOException, URISyntaxException, DatafileTaskException {
+ Path trustCaPath = Paths.get(getClass().getResource("/org/oran/datafile/datastore/file.txt").toURI());
+ assertThrows(NonRetryableDatafileTaskException.class, () -> clientUnderTestSpy.createOutputStream(trustCaPath));
+ }
+
+ @Test
+ void testGetTrustManager2() throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException {
+ FileServerData fileServerData = FileServerData.builder()
+ .password("password123")
+ .port(8080)
+ .serverAddress("42 Main St")
+ .userId("42")
+ .build();
+ assertNull((new FtpesClient(fileServerData, Paths.get(System.getProperty("java.io.tmpdir"), "test.txt"),
+ "Key Cert Password Path", Paths.get(System.getProperty("java.io.tmpdir"), "test.txt"),
+ "Trusted Ca Password Path")).getTrustManager(null, "foo"));
+ }