diff options
author | 2018-02-20 12:00:10 -0500 | |
---|---|---|
committer | 2018-02-20 12:00:10 -0500 | |
commit | 724ff8f8b22d6503ce5070ebc13f6f5fbc48c8cf (patch) | |
tree | 063414ae8d035fe9957cba3833661a915c1f8eff /ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserProfileServiceImplTest.java | |
parent | 20602aa99841048e65a36dc26d8bfc4d6a11fcc9 (diff) |
Increase JUNIT Coverage
Issue-ID: PORTAL-136
Change-Id: I2223003924f36043753bef401ed1d8ee87f4a65e
Signed-off-by: st782s <statta@research.att.com>
Diffstat (limited to 'ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserProfileServiceImplTest.java')
-rw-r--r-- | ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserProfileServiceImplTest.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserProfileServiceImplTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserProfileServiceImplTest.java index f7bb3108..565142d0 100644 --- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserProfileServiceImplTest.java +++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/service/UserProfileServiceImplTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START========================================== * ONAP Portal SDK * =================================================================== - * Copyright © 2017 AT&T Intellectual Property. All rights reserved. + * Copyright © 2017 AT&T Intellectual Property. All rights reserved. * =================================================================== * * Unless otherwise specified, all software contained herein is licensed @@ -68,7 +68,15 @@ public class UserProfileServiceImplTest { Assert.assertTrue(true); } - + /*public void getUserByLoginId(){ + String loginId = "123"; + List<User> users = new ArrayList<>(); + User user = new User(); + users.add(user); + Mockito.when(dataAccessService.getList(Mockito.any(), Mockito.any(), Mockito.anyList(), Mockito.any())).thenReturn(users); + User retrunUser = userProfileServiceImpl.getUserByLoginId(loginId); + Assert.assertNotNull(retrunUser); + }*/ @Test public void saveUserTest(){ @@ -88,4 +96,4 @@ public class UserProfileServiceImplTest { Mockito.when(mockClass.getAllUserName()).thenReturn(onlineUsers); userProfileServiceImpl.findAllUserWithOnOffline(originOrgUserId); }*/ -} +}
\ No newline at end of file |