* ============LICENSE_START==========================================
* ONAP Portal
* ===================================================================
* ============LICENSE_START==========================================
* ONAP Portal
* ===================================================================
* ===================================================================
*
* Unless otherwise specified, all software contained herein is licensed
* ===================================================================
*
* Unless otherwise specified, all software contained herein is licensed
* you may not use this software except in compliance with the License.
* You may obtain a copy of the License at
*
* you may not use this software except in compliance with the License.
* You may obtain a copy of the License at
*
* limitations under the License.
*
* Unless otherwise specified, all documentation contained herein is licensed
* limitations under the License.
*
* Unless otherwise specified, all documentation contained herein is licensed
* you may not use this documentation except in compliance with the License.
* You may obtain a copy of the License at
*
* you may not use this documentation except in compliance with the License.
* You may obtain a copy of the License at
*
-import org.openecomp.portalapp.portal.transport.CentralRole;
-import org.openecomp.portalapp.portal.transport.CentralUser;
-import org.openecomp.portalapp.portal.transport.CentralUserApp;
+import org.onap.portalapp.portal.transport.CentralV2Role;
+import org.onap.portalapp.portal.transport.CentralV2User;
+import org.onap.portalapp.portal.transport.CentralV2UserApp;
- public CentralUser mockCentralUser(){
- Set<CentralUserApp> userApps = new HashSet<CentralUserApp>();
- Set<CentralRole> pseudoRoles = new HashSet<CentralRole>();
- CentralUser centralUser = new CentralUser((long)1, null, null, (long)1, (long)1, (long)1, (long)1,
+ public CentralV2User mockCentralUser(){
+ Set<CentralV2UserApp> userApps = new HashSet<CentralV2UserApp>();
+ Set<CentralV2Role> pseudoRoles = new HashSet<CentralV2Role>();
+ CentralV2User centralV2User = new CentralV2User((long)1, null, null, (long)1, (long)1, (long)1, (long)1,
(long)1, "test", "test", "test", "test", "test",
"test", "test", (long)1, "test", "test", "test",
"test", "test", "test", "test", "test", "test", "test",
(long)1, "test", "test", "test", "test", "test",
"test", "test", (long)1, "test", "test", "test",
"test", "test", "test", "test", "test", "test", "test",
"test", "test", "test", "test", null,
false, false, (long)1, (long)1, false, "test", userApps, pseudoRoles);
"test", "test", "test", "test", null,
false, false, (long)1, (long)1, false, "test", userApps, pseudoRoles);
- Set<CentralUserApp> userApps = new HashSet<CentralUserApp>();
- Set<CentralRole> pseudoRoles = new HashSet<CentralRole>();
- CentralUser centralUser1 = new CentralUser((long)1, null, null, (long)1, (long)1, (long)1, (long)1,
+ Set<CentralV2UserApp> userApps = new HashSet<CentralV2UserApp>();
+ Set<CentralV2Role> pseudoRoles = new HashSet<CentralV2Role>();
+ CentralV2User centralV2User1 = new CentralV2User((long)1, null, null, (long)1, (long)1, (long)1, (long)1,
(long)1, "test", "test", "test", "test", "test",
"test", "test", (long)1, "test", "test", "test",
"test", "test", "test", "test", "test", "test", "test",
(long)1, "test", "test", "test", "test", "test",
"test", "test", (long)1, "test", "test", "test",
"test", "test", "test", "test", "test", "test", "test",
false, false, (long)1, (long)1, false, "test", userApps, pseudoRoles);
false, false, (long)1, (long)1, false, "test", userApps, pseudoRoles);
- assertEquals(centralUser, centralUser1);
- assertEquals(centralUser.hashCode(), centralUser1.hashCode());
- assertTrue(centralUser.equals(centralUser1));
+ assertEquals(centralV2User, centralV2User1);
+ assertEquals(centralV2User.hashCode(), centralV2User1.hashCode());
+ assertTrue(centralV2User.equals(centralV2User1));