diff options
author | 2019-02-14 15:16:30 -0500 | |
---|---|---|
committer | 2019-02-14 15:16:30 -0500 | |
commit | 32f584718e108c192817863880941bd922c6575b (patch) | |
tree | aa9fd8dc1069d5fa996dbdf6c235092d3558ea38 /ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core | |
parent | e8b5b88d6cbe36d62fad93ca696a09e06db0942a (diff) |
pom, upgrade script changes, AAF role desc fix
Issue-ID: PORTAL-356
portal/SDK release 2.5.1, POM, upgrade script
Change-Id: If71a1bbbcf31699ed424c86a8fead2e3c704373f
Signed-off-by: Kishore Reddy, Gujja (kg811t) <kishore.reddy.gujja@att.com>
Diffstat (limited to 'ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core')
-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 |