summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/test/domain/EPAppRoleFunctionTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/test/domain/EPAppRoleFunctionTest.java')
-rw-r--r--ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/test/domain/EPAppRoleFunctionTest.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/test/domain/EPAppRoleFunctionTest.java b/ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/test/domain/EPAppRoleFunctionTest.java
new file mode 100644
index 00000000..a3f24631
--- /dev/null
+++ b/ecomp-portal-BE-common-test/src/main/java/org/openecomp/portalapp/portal/test/domain/EPAppRoleFunctionTest.java
@@ -0,0 +1,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");
+ }
+}