diff options
author | Manoop Talasila <talasila@research.att.com> | 2019-07-09 15:29:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-09 15:29:29 +0000 |
commit | a8001bfd4a8a77fb402a5679ccb80dd14a3658c1 (patch) | |
tree | 93c1344183ca90d58d5e5b70adc701e445b099e1 /ecomp-portal-BE-common/src/test/java/org/onap | |
parent | 7452df539af5dc90596307713c15cae7cc9bd6db (diff) | |
parent | 44be7f841e451097d29bd9313d9558e3f9031d1b (diff) |
Merge "FunctionalMenuRole class DB constraints"
Diffstat (limited to 'ecomp-portal-BE-common/src/test/java/org/onap')
-rw-r--r-- | ecomp-portal-BE-common/src/test/java/org/onap/portalapp/portal/transport/FunctionalMenuRoleTest.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/portal/transport/FunctionalMenuRoleTest.java b/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/portal/transport/FunctionalMenuRoleTest.java index 3000c2f4..44047322 100644 --- a/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/portal/transport/FunctionalMenuRoleTest.java +++ b/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/portal/transport/FunctionalMenuRoleTest.java @@ -37,41 +37,41 @@ */ package org.onap.portalapp.portal.transport; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; import org.junit.Test; -import org.onap.portalapp.portal.transport.FunctionalMenuRole; public class FunctionalMenuRoleTest { public FunctionalMenuRole mockFunctionalMenuRole(){ FunctionalMenuRole functionalMenuRole = new FunctionalMenuRole(); - + functionalMenuRole.setId(1); functionalMenuRole.setMenuId((long)1); functionalMenuRole.setAppId(1); functionalMenuRole.setRoleId(1); - + return functionalMenuRole; } - + @Test public void functionalMenuRoleTest(){ FunctionalMenuRole functionalMenuRole = mockFunctionalMenuRole(); - + FunctionalMenuRole functionalMenuRole1 = new FunctionalMenuRole(); functionalMenuRole1.setId(1); functionalMenuRole1.setMenuId((long)1); functionalMenuRole1.setAppId(1); functionalMenuRole1.setRoleId(1); - + assertEquals(functionalMenuRole.getId().toString(), "1"); assertEquals(functionalMenuRole.getMenuId(), new Long(1)); assertEquals(functionalMenuRole.getAppId().toString(), "1"); assertEquals(functionalMenuRole.getRoleId().toString(), "1"); - assertEquals(functionalMenuRole.toString(), "FunctionalMenuRole [id=1, menuId=1, appId=1, roleId=1]"); + assertEquals(functionalMenuRole.toString(), "FunctionalMenuRole(id=1, menuId=1, appId=1, roleId=1)"); assertTrue(functionalMenuRole.equals(functionalMenuRole1)); assertEquals(functionalMenuRole.hashCode(), functionalMenuRole1.hashCode()); - + } } |