Merge "Modify UT after adding output type parameter"
authorPaweł Baniewski <pawel.baniewski@nokia.com>
Thu, 18 Jun 2020 09:32:28 +0000 (09:32 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 18 Jun 2020 09:32:28 +0000 (09:32 +0000)
certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/ClientConfigurationFactoryTest.java

index bf4bc3d..7239b21 100644 (file)
@@ -44,6 +44,7 @@ public class ClientConfigurationFactoryTest {
     private final String OUTPUT_PATH_INVALID = "/opt//app/osaaf";
     private final String OUTPUT_TYPE_VALID = "JKS";
     private final String OUTPUT_TYPE_INVALID = "JKSS";
+    private final String OUTPUT_TYPE_DEFAULT = "P12";
 
     private EnvsForClient envsForClient = mock(EnvsForClient.class);
 
@@ -83,6 +84,7 @@ public class ClientConfigurationFactoryTest {
         assertThat(configuration.getRequestTimeout()).isEqualTo(Integer.valueOf(TIME_OUT_VALID));
         assertThat(configuration.getCertsOutputPath()).isEqualTo(OUTPUT_PATH_VALID);
         assertThat(configuration.getUrlToCertService()).isEqualTo(URL_TO_CERT_SERVICE_DEFAULT);
+        assertThat(configuration.getOutputType()).isEqualTo(OUTPUT_TYPE_DEFAULT);
     }
 
     @Test