summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-common/src/test/java/org/onap/portalapp/controller/core/ProfileSearchControllerTest.java
diff options
context:
space:
mode:
authorst398c <st398c@research.att.com>2019-07-23 14:02:06 -0400
committerst398c <st398c@research.att.com>2019-07-23 14:02:06 -0400
commitd832e0acf41e74b6036ae256429a127252782f1b (patch)
tree8927c4f106cc35be4507d106ddb5c889f37ced79 /ecomp-sdk/epsdk-app-common/src/test/java/org/onap/portalapp/controller/core/ProfileSearchControllerTest.java
parent6dbf064ddae3b6b2f98300a52d4d5a2f78b90293 (diff)
Blackduck scan fixes and PenTest
Issue-ID: PORTAL-631 Change-Id: I606837e3aefd0bbb7ff45ac2e597d214da06e7ed Signed-off-by: st398c <st398c@research.att.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-common/src/test/java/org/onap/portalapp/controller/core/ProfileSearchControllerTest.java')
-rw-r--r--ecomp-sdk/epsdk-app-common/src/test/java/org/onap/portalapp/controller/core/ProfileSearchControllerTest.java25
1 files changed, 0 insertions, 25 deletions
diff --git a/ecomp-sdk/epsdk-app-common/src/test/java/org/onap/portalapp/controller/core/ProfileSearchControllerTest.java b/ecomp-sdk/epsdk-app-common/src/test/java/org/onap/portalapp/controller/core/ProfileSearchControllerTest.java
index cc672156..185672ff 100644
--- a/ecomp-sdk/epsdk-app-common/src/test/java/org/onap/portalapp/controller/core/ProfileSearchControllerTest.java
+++ b/ecomp-sdk/epsdk-app-common/src/test/java/org/onap/portalapp/controller/core/ProfileSearchControllerTest.java
@@ -119,31 +119,6 @@ public class ProfileSearchControllerTest {
profileSearchController.profileSearch(mockedRequest);
}
- @Test
- public void getUserTest() throws IOException, PortalAPIException{
- List<User> profileList = new ArrayList<>();
- User user = new User();
- user.setOrgUserId("test");
- StringWriter sw = new StringWriter();
- PrintWriter writer = new PrintWriter(sw);
- Mockito.when(loginStrategy.getUserId(mockedRequest)).thenReturn("test");
- Mockito.when(mockedResponse.getWriter()).thenReturn(writer);
- Mockito.when(service.findAll()).thenReturn(profileList);
- profileSearchController.getUser(mockedRequest, mockedResponse);
- }
-
- @Test
- public void getUserExceptionTest() throws IOException, PortalAPIException{
- List<User> profileList = null;
- User user = new User();
- user.setOrgUserId("test");
- StringWriter sw = new StringWriter();
- PrintWriter writer = new PrintWriter(sw);
- Mockito.when(loginStrategy.getUserId(mockedRequest)).thenReturn("test");
- Mockito.when(mockedResponse.getWriter()).thenReturn(writer);
- Mockito.when(service.findAll()).thenReturn(profileList);
- profileSearchController.getUser(mockedRequest, mockedResponse);
- }
@Test
public void getUserPaginationTest() throws IOException{