From 7d05e16f0ab24ba8918bd4466d50a9fb77571552 Mon Sep 17 00:00:00 2001 From: Tal Gitelman Date: Wed, 10 Oct 2018 14:52:54 +0300 Subject: update sdc portal integration Change-Id: I6e17434f753c2eaa562da80c1eade8688601f510 Issue-ID: SDC-1749 Signed-off-by: Tal Gitelman --- .../test/java/org/openecomp/sdc/be/ecomp/EcompIntImplTest.java | 10 +++++----- .../sdc/be/ecomp/converters/EcompRoleConverterTest.java | 2 +- .../sdc/be/ecomp/converters/EcompUserConverterTest.java | 6 ++---- 3 files changed, 8 insertions(+), 10 deletions(-) (limited to 'catalog-be/src/test') diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/EcompIntImplTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/EcompIntImplTest.java index e4e13d6477..fd5bbdb74a 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/EcompIntImplTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/EcompIntImplTest.java @@ -2,9 +2,9 @@ package org.openecomp.sdc.be.ecomp; import org.junit.Test; import org.mockito.Mockito; -import org.openecomp.portalsdk.core.onboarding.exception.PortalAPIException; -import org.openecomp.portalsdk.core.restful.domain.EcompRole; -import org.openecomp.portalsdk.core.restful.domain.EcompUser; +import org.onap.portalsdk.core.onboarding.exception.PortalAPIException; +import org.onap.portalsdk.core.restful.domain.EcompRole; +import org.onap.portalsdk.core.restful.domain.EcompUser; import javax.servlet.http.HttpServletRequest; import java.util.List; @@ -64,10 +64,10 @@ public class EcompIntImplTest { // default test testSubject = createTestSubject(); - result = testSubject.getAvailableRoles(); + result = testSubject.getAvailableRoles("Mock"); } - @Test(expected=PortalAPIException.class) + @Test(expected= PortalAPIException.class) public void testGetUserRoles() throws Exception { EcompIntImpl testSubject; String loginId = ""; diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/converters/EcompRoleConverterTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/converters/EcompRoleConverterTest.java index 528b9b6b69..53d8d5f7c6 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/converters/EcompRoleConverterTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/converters/EcompRoleConverterTest.java @@ -1,7 +1,7 @@ package org.openecomp.sdc.be.ecomp.converters; import org.junit.Test; -import org.openecomp.portalsdk.core.restful.domain.EcompRole; +import org.onap.portalsdk.core.restful.domain.EcompRole; import org.openecomp.sdc.be.user.Role; public class EcompRoleConverterTest { diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/converters/EcompUserConverterTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/converters/EcompUserConverterTest.java index 91cf1417dd..301de32f6f 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/converters/EcompUserConverterTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/ecomp/converters/EcompUserConverterTest.java @@ -1,13 +1,11 @@ package org.openecomp.sdc.be.ecomp.converters; -import fj.data.Either; import fj.data.Either; import org.junit.Test; -import org.openecomp.portalsdk.core.restful.domain.EcompRole; -import org.openecomp.portalsdk.core.restful.domain.EcompUser; +import org.onap.portalsdk.core.restful.domain.EcompRole; +import org.onap.portalsdk.core.restful.domain.EcompUser; import org.openecomp.sdc.be.model.User; - import java.util.Collections; import static org.assertj.core.api.AssertionsForClassTypes.assertThat; -- cgit 1.2.3-korg