summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/test/domain/EPAppRoleFunctionTest.java
blob: a3f24631abe850f0c4554ef2ce7c5f445aa7d0c3 (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
package org.openecomp.portalapp.portal.test.domain;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.openecomp.portalapp.portal.domain.EPAppRoleFunction;

public class EPAppRoleFunctionTest {

	public EPAppRoleFunction mockEPAppRoleFunction(){
		EPAppRoleFunction epAppRoleFunction = new EPAppRoleFunction();
		epAppRoleFunction.setRoleId((long)1);
		epAppRoleFunction.setAppId((long)1);
		epAppRoleFunction.setCode("test");
		
		return epAppRoleFunction;
	}
	
	@Test
	public void epAppRoleFunctionTest(){
		EPAppRoleFunction epAppRoleFunction = mockEPAppRoleFunction();
		
		assertEquals(epAppRoleFunction.getRoleId(), new Long(1));
		assertEquals(epAppRoleFunction.getAppId(), new Long(1));
		assertEquals(epAppRoleFunction.getCode(), "test");
	}
}