summaryrefslogtreecommitdiffstats
path: root/certServiceClient/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'certServiceClient/src/test')
-rw-r--r--certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/writer/CertFileWriterTest.java2
-rw-r--r--certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvsForCsrTest.java8
-rw-r--r--certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java4
-rw-r--r--certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/SslContextFactoryTest.java2
4 files changed, 8 insertions, 8 deletions
diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/writer/CertFileWriterTest.java b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/writer/CertFileWriterTest.java
index e7ebb32b..61c4d835 100644
--- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/writer/CertFileWriterTest.java
+++ b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/writer/CertFileWriterTest.java
@@ -70,7 +70,7 @@ class CertFileWriterTest {
}
@Test
- void certFileWriterShouldThrowPemToPKCS12ConverterExceptionWhenOutputDirectoryDoesNotExist() {
+ void certFileWriterShouldThrowCertFileWriterExceptionWhenOutputDirectoryDoesNotExist() {
// given
final byte[] data = new byte[]{-128, 1, 2, 3, 0};
CertFileWriter certFileWriter = new CertFileWriter(OUTPUT_PATH + "thisPathDoesNotExist/");
diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvsForCsrTest.java b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvsForCsrTest.java
index 8e0f5bbf..656bbe59 100644
--- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvsForCsrTest.java
+++ b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/EnvsForCsrTest.java
@@ -83,7 +83,7 @@ class EnvsForCsrTest {
}
@Test
- void shouldReturnSystemEnvOUVariableWhenItWasDefined() {
+ void shouldReturnSystemEnvOuVariableWhenItWasDefined() {
// given
when(envsForCsr.readEnv(CsrConfigurationEnvs.ORGANIZATION_UNIT)).thenReturn(Optional.of(TEST_ENV));
@@ -96,7 +96,7 @@ class EnvsForCsrTest {
}
@Test
- public void shouldReportThatSystemEnvOUVariableIsNotPresentWhenItWasNotDefined() {
+ public void shouldReportThatSystemEnvOuVariableIsNotPresentWhenItWasNotDefined() {
// when
final Optional<String> testEnv = envsForCsr.getOrganizationUnit();
@@ -171,7 +171,7 @@ class EnvsForCsrTest {
}
@Test
- void shouldReturnSystemEnvSANSVariableWhenItWasDefined() {
+ void shouldReturnSystemEnvSansVariableWhenItWasDefined() {
// given
when(envsForCsr.readEnv(CsrConfigurationEnvs.SANS)).thenReturn(Optional.of(TEST_ENV));
@@ -184,7 +184,7 @@ class EnvsForCsrTest {
}
@Test
- public void shouldReportThatSystemEnvSANSVariableIsNotPresentWhenItWasNotDefined() {
+ public void shouldReportThatSystemEnvSansVariableIsNotPresentWhenItWasNotDefined() {
// when
final Optional<String> testEnv = envsForCsr.getSubjectAlternativesName();
diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java
index 5abd0b13..b9b9b078 100644
--- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java
+++ b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java
@@ -53,8 +53,8 @@ public class CsrConfigurationFactoryTest {
private CsrConfigurationFactory testedFactory;
private Condition<CsrConfigurationException> expectedExitCodeCondition = new Condition<>("Correct exit code") {
@Override
- public boolean matches(CsrConfigurationException e) {
- return e.applicationExitStatus() == CSR_CONFIGURATION_EXCEPTION;
+ public boolean matches(CsrConfigurationException exception) {
+ return exception.applicationExitStatus() == CSR_CONFIGURATION_EXCEPTION;
}
};
diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/SslContextFactoryTest.java b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/SslContextFactoryTest.java
index e71e9895..8e6e8369 100644
--- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/SslContextFactoryTest.java
+++ b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/configuration/factory/SslContextFactoryTest.java
@@ -173,7 +173,7 @@ public class SslContextFactoryTest {
}
@Test
- public void shouldReturnSSLContext() throws TlsConfigurationException {
+ public void shouldReturnSslContext() throws TlsConfigurationException {
// Given
String keystorePath = getResourcePath(VALID_KEYSTORE_NAME);
String truststorePath = getResourcePath(VALID_TRUSTSTORE_NAME);