1 package org.openecomp.portalapp.portal.test.service;
3 import static org.junit.Assert.assertEquals;
4 import static org.junit.Assert.assertNull;
6 import java.io.IOException;
8 import org.junit.Before;
10 import org.mockito.InjectMocks;
11 import org.mockito.MockitoAnnotations;
12 import org.openecomp.portalapp.lm.LicenseableClassImpl;
14 public class LicenseableClassImplTest {
17 LicenseableClassImpl licenseableClassImpl= new LicenseableClassImpl();
21 MockitoAnnotations.initMocks(this);
25 public void getApplicationNameTest()
27 assertEquals(licenseableClassImpl.getApplicationName(), "");
30 public void getPublicKeystoreAsInputStreamTest() throws IOException
32 assertNull(licenseableClassImpl.getPublicKeystoreAsInputStream());
35 public void getAliasTest()
37 assertEquals(licenseableClassImpl.getAlias(), "");
40 public void getKeyPasswdTest()
42 assertEquals(licenseableClassImpl.getKeyPasswd(), "");
45 public void getPublicKeystorePasswordTest()
47 assertEquals(licenseableClassImpl.getPublicKeystorePassword(), "");
50 public void getCipherParamPasswordTest()
52 assertEquals(licenseableClassImpl.getPublicKeystorePassword(), "");
55 public void getClassToLicenseTest()
57 assertEquals(licenseableClassImpl.getClassToLicense(), LicenseableClassImpl.class);