summaryrefslogtreecommitdiffstats
path: root/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/ArtifactsCreatorProviderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/ArtifactsCreatorProviderTest.java')
-rw-r--r--certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/ArtifactsCreatorProviderTest.java13
1 files changed, 1 insertions, 12 deletions
diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/ArtifactsCreatorProviderTest.java b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/ArtifactsCreatorProviderTest.java
index eb572658..be00003b 100644
--- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/ArtifactsCreatorProviderTest.java
+++ b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/ArtifactsCreatorProviderTest.java
@@ -20,20 +20,17 @@
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));
-
- }
}