diff options
Diffstat (limited to 'ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/lm')
2 files changed, 60 insertions, 0 deletions
diff --git a/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/lm/FusionLicenseManagerImplTest.java b/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/lm/FusionLicenseManagerImplTest.java new file mode 100644 index 00000000..6c1e52f7 --- /dev/null +++ b/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/lm/FusionLicenseManagerImplTest.java @@ -0,0 +1,29 @@ +package org.openecomp.portalapp.portal.lm; + +import static org.junit.Assert.assertEquals; + +import java.util.Date; + +import org.junit.Test; +import org.openecomp.portalapp.lm.FusionLicenseManagerImpl; + +public class FusionLicenseManagerImplTest { + + + @Test + public void FusionLicenseManagerImplTest(){ + FusionLicenseManagerImpl fusionLicenseManagerImpl = new FusionLicenseManagerImpl(); + + String nvlReturn = null; + + int installLicenseInt = fusionLicenseManagerImpl.installLicense(); + nvlReturn = fusionLicenseManagerImpl.nvl("test"); + Date expiredDateReturn = fusionLicenseManagerImpl.getExpiredDate(); + + assertEquals(installLicenseInt, 0); + assertEquals(nvlReturn, null); + assertEquals(expiredDateReturn, null); + + } + +} diff --git a/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/lm/LicenseableClassImplTest.java b/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/lm/LicenseableClassImplTest.java new file mode 100644 index 00000000..b57291ee --- /dev/null +++ b/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/lm/LicenseableClassImplTest.java @@ -0,0 +1,31 @@ +package org.openecomp.portalapp.portal.lm; + +import static org.junit.Assert.assertEquals; + +import java.io.FileNotFoundException; + +import org.junit.Test; +import org.openecomp.portalapp.lm.LicenseableClassImpl; + +public class LicenseableClassImplTest { + + @Test + public void licenseableClassImplTest() throws FileNotFoundException{ + LicenseableClassImpl licenseableClassImpl = new LicenseableClassImpl(); + + String appNameReturn = licenseableClassImpl.getApplicationName(); + java.io.InputStream inputStream = licenseableClassImpl.getPublicKeystoreAsInputStream(); + String aliasReturn = licenseableClassImpl.getAlias(); + String pswdReturn = licenseableClassImpl.getKeyPasswd(); + String pkPswd = licenseableClassImpl.getPublicKeystorePassword(); + String cpPswd = licenseableClassImpl.getCipherParamPassword(); + + assertEquals(appNameReturn, ""); + assertEquals(inputStream, null); + assertEquals(aliasReturn, ""); + assertEquals(pswdReturn, ""); + assertEquals(pkPswd, ""); + assertEquals(cpPswd, ""); + + } +} |