diff options
author | Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> | 2020-06-24 14:06:48 +0200 |
---|---|---|
committer | Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> | 2020-06-25 09:00:36 +0200 |
commit | 34d11834cbe76992246f3a4c5df5807af2e7d0d2 (patch) | |
tree | 6026a29b559732d614d17004c2588486d0c9ce81 /certServiceClient/src/test/java/org | |
parent | ffa2b75513bac0ac7aa39bdb6d0b77f751735c5e (diff) |
Fix checkstyle warnings1.1.0
Issue-ID: AAF-1152
Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com>
Change-Id: I77777db7080000c22ef3db9ff8e755dac8258c9e
Diffstat (limited to 'certServiceClient/src/test/java/org')
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); |