summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/service/LicenseableClassImplTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/service/LicenseableClassImplTest.java')
-rw-r--r--ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/service/LicenseableClassImplTest.java61
1 files changed, 61 insertions, 0 deletions
diff --git a/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/service/LicenseableClassImplTest.java b/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/service/LicenseableClassImplTest.java
new file mode 100644
index 00000000..d04355d2
--- /dev/null
+++ b/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/service/LicenseableClassImplTest.java
@@ -0,0 +1,61 @@
+package org.openecomp.portalapp.portal.service;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNull;
+
+import java.io.IOException;
+
+import org.junit.Before;
+import org.junit.Test;
+import org.mockito.InjectMocks;
+import org.mockito.MockitoAnnotations;
+import org.openecomp.portalapp.lm.LicenseableClassImpl;
+
+public class LicenseableClassImplTest {
+
+ @InjectMocks
+ LicenseableClassImpl licenseableClassImpl= new LicenseableClassImpl();
+
+ @Before
+ public void setup() {
+ MockitoAnnotations.initMocks(this);
+ }
+
+ @Test
+ public void getApplicationNameTest()
+ {
+ assertEquals(licenseableClassImpl.getApplicationName(), "");
+ }
+ @Test
+ public void getPublicKeystoreAsInputStreamTest() throws IOException
+ {
+ assertNull(licenseableClassImpl.getPublicKeystoreAsInputStream());
+ }
+ @Test
+ public void getAliasTest()
+ {
+ assertEquals(licenseableClassImpl.getAlias(), "");
+ }
+ @Test
+ public void getKeyPasswdTest()
+ {
+ assertEquals(licenseableClassImpl.getKeyPasswd(), "");
+ }
+ @Test
+ public void getPublicKeystorePasswordTest()
+ {
+ assertEquals(licenseableClassImpl.getPublicKeystorePassword(), "");
+ }
+ @Test
+ public void getCipherParamPasswordTest()
+ {
+ assertEquals(licenseableClassImpl.getPublicKeystorePassword(), "");
+ }
+ @Test
+ public void getClassToLicenseTest()
+ {
+ assertEquals(licenseableClassImpl.getClassToLicense(), LicenseableClassImpl.class);
+ }
+
+
+}