diff options
author | Tomasz Wrobel <tomasz.wrobel@nokia.com> | 2020-06-16 15:36:23 +0200 |
---|---|---|
committer | Tomasz Wrobel <tomasz.wrobel@nokia.com> | 2020-06-16 15:36:23 +0200 |
commit | fc666727897c9f78fdcddbf4b678e1c0b0c413a9 (patch) | |
tree | 98a6971859d37e63813369d48a7449f08e4108bc /certServiceClient/src/test | |
parent | b288b7ab24f33af72e9c0fedecbb9979d1b4afc7 (diff) |
Remove unnecessary exceptions
Issue-ID: AAF-1152
Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com>
Change-Id: Ie343cd2e3006f9217db5b8454c060eb8c1d3e9e3
Diffstat (limited to 'certServiceClient/src/test')
-rw-r--r-- | certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/ArtifactsCreatorProviderTest.java | 13 |
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)); - - } } |