Remove unnecessary exceptions
[oom/platform/cert-service.git] / certServiceClient / src / test / java / org / onap / aaf / certservice / client / certification / conversion / ArtifactsCreatorProviderTest.java
index eb57265..be00003 100644 (file)
 package org.onap.aaf.certservice.client.certification.conversion;
 
 import org.junit.jupiter.api.Test;
-import org.onap.aaf.certservice.client.certification.exception.CertOutputTypeNotSupportedException;
 
 import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
 
 
 class ArtifactsCreatorProviderTest {
 
     private static final String STRATEGY_P12 = "P12";
     private static final String TEST_PATH = "testPath";
-    private static final String NOT_SUPPORTED_STRATEGY = "notSupported";
 
     @Test
-    void getStrategyOfStringShouldReturnCorrectCreator() throws Exception {
+    void getStrategyOfStringShouldReturnCorrectCreator(){
 
         // when
         ArtifactsCreator artifactsCreator =
@@ -41,12 +38,4 @@ class ArtifactsCreatorProviderTest {
         // then
         assertThat(artifactsCreator).isInstanceOf(PKCS12ArtifactsCreator.class);
     }
-
-    @Test
-    void notSupportedStrategyShouldThrowException() {
-        // when// then
-        assertThatExceptionOfType(CertOutputTypeNotSupportedException.class)
-                .isThrownBy(() -> ArtifactsCreatorProvider.getCreator(NOT_SUPPORTED_STRATEGY, TEST_PATH));
-
-    }
 }