summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common/src/test/java/org/openecomp/portalapp/portal/service/LicenseableClassImplTest.java
blob: d04355d2def3b8b7387762569642ca2056528e55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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);
	}
	
	
}