diff options
author | 2019-03-28 16:30:03 -0400 | |
---|---|---|
committer | 2019-03-28 16:30:03 -0400 | |
commit | fa5f20d91c416a855f0d6afe157db8250574617c (patch) | |
tree | 3dd5dd3f8bccc8c0f30ca41cb2569aa4b0c5cefb /ecomp-sdk/epsdk-core/src/test | |
parent | 1ded3bb69c5e91cd879d83e13d2b3295710cdb4f (diff) |
Fortify, version, Junit
Issue-ID: PORTAL-543, PORTAL-273, PORTAL-544
Change-Id: Ib864ef78bbd534170cab90d9314f2d8943f78872
Signed-off-by: Thota, Saisree <st398c@research.att.com>
Diffstat (limited to 'ecomp-sdk/epsdk-core/src/test')
-rw-r--r-- | ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserApiServiceImplTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserApiServiceImplTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserApiServiceImplTest.java index 7fa24ad9..0d76b445 100644 --- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserApiServiceImplTest.java +++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserApiServiceImplTest.java @@ -230,7 +230,6 @@ public class UserApiServiceImplTest { userRolesList.add(mockJsonObjectRole4); userRolesList.add(mockJsonObjectRole5); mockJsonObjectFinalUserRole.put("role", userRolesList); - Mockito.when(EcompExternalAuthUtils.isJSONValid(addDesc)).thenReturn(true); ResponseEntity<String> response = new ResponseEntity<>(mockJsonObjectFinalUserRole.toString(), HttpStatus.OK); Mockito.when(template.exchange(Matchers.anyString(), Matchers.eq(HttpMethod.GET), Matchers.<HttpEntity<String>>any(), Matchers.eq(String.class))).thenReturn(response); @@ -240,6 +239,7 @@ public class UserApiServiceImplTest { String user = mapper.writeValueAsString(userObj()); Mockito.when(aafService.getUser("test123", mockedRequest, headers)).thenReturn(user); User actual = UserApiServiceImpl.getUser("test123", mockedRequest); + assertNull(actual); } @Test |