Increase test coverage for SslAuthenticationHelper 40/106440/5
authorAleksandra Maciaga <aleksandra.maciaga@nokia.com>
Wed, 22 Apr 2020 10:45:01 +0000 (12:45 +0200)
committerAleksandra Maciaga <aleksandra.maciaga@nokia.com>
Wed, 22 Apr 2020 12:19:06 +0000 (14:19 +0200)
Issue-ID: INT-1517
Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com>
Change-Id: I2dc3f721e7bc6f6e0d89355e13592839aac9c985

pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/client/utils/ssl/SslAuthenticationHelper.java

index ee5fdb7..1887d37 100644 (file)
@@ -20,6 +20,9 @@
 package org.onap.pnfsimulator.simulator.client.utils.ssl;
 
 import java.io.Serializable;
+
+import lombok.Getter;
+import lombok.Setter;
 import org.springframework.boot.context.properties.ConfigurationProperties;
 import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.context.annotation.Primary;
@@ -29,6 +32,8 @@ import org.springframework.stereotype.Component;
 @ConfigurationProperties(prefix = "ssl")
 @RefreshScope
 @Primary
+@Getter
+@Setter
 public class SslAuthenticationHelper implements Serializable {
 
     private boolean clientCertificateEnabled;
@@ -36,44 +41,4 @@ public class SslAuthenticationHelper implements Serializable {
     private String clientCertificatePassword;
     private String trustStoreDir;
     private String trustStorePassword;
-
-    public boolean isClientCertificateEnabled() {
-        return clientCertificateEnabled;
-    }
-
-    public void setClientCertificateEnabled(boolean clientCertificateEnabled) {
-        this.clientCertificateEnabled = clientCertificateEnabled;
-    }
-
-    public String getClientCertificateDir() {
-        return clientCertificateDir;
-    }
-
-    public void setClientCertificateDir(String clientCertificateDir) {
-        this.clientCertificateDir = clientCertificateDir;
-    }
-
-    public String getClientCertificatePassword() {
-        return clientCertificatePassword;
-    }
-
-    public void setClientCertificatePassword(String clientCertificatePassword) {
-        this.clientCertificatePassword = clientCertificatePassword;
-    }
-
-    public String getTrustStoreDir() {
-        return trustStoreDir;
-    }
-
-    public void setTrustStoreDir(String trustStoreDir) {
-        this.trustStoreDir = trustStoreDir;
-    }
-
-    public String getTrustStorePassword() {
-        return trustStorePassword;
-    }
-
-    public void setTrustStorePassword(String trustStorePassword) {
-        this.trustStorePassword = trustStorePassword;
-    }
 }