diff options
Diffstat (limited to 'ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/system/fusion')
-rw-r--r-- | ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/system/fusion/adapter/RaptorAdapterTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/system/fusion/adapter/RaptorAdapterTest.java b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/system/fusion/adapter/RaptorAdapterTest.java index 34bdd787..0461cffa 100644 --- a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/system/fusion/adapter/RaptorAdapterTest.java +++ b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/system/fusion/adapter/RaptorAdapterTest.java @@ -66,6 +66,8 @@ public class RaptorAdapterTest { DataAccessService mockDataAccessService = Mockito.mock(DataAccessService.class); PowerMockito.mockStatic(AppUtils.class); PowerMockito.when(AppUtils.getDataAccessService()).thenReturn(mockDataAccessService); + RaptorAdapter raptorAdapter = new RaptorAdapter(); + raptorAdapter.setDataAccessService(AppUtils.getDataAccessService()); Mockito.doReturn(userList).when(mockDataAccessService).getList(Mockito.eq(User.class), Mockito.eq(null), Mockito.anyList(), Mockito.eq(null)); String loginID = RaptorAdapter.getUserLoginId("1"); assertEquals("test",loginID); @@ -76,6 +78,8 @@ public class RaptorAdapterTest { DataAccessService mockDataAccessService = Mockito.mock(DataAccessService.class); PowerMockito.mockStatic(AppUtils.class); PowerMockito.when(AppUtils.getDataAccessService()).thenReturn(mockDataAccessService); + RaptorAdapter raptorAdapter = new RaptorAdapter(); + raptorAdapter.setDataAccessService(AppUtils.getDataAccessService()); Mockito.doReturn(null).when(mockDataAccessService).getList(Mockito.eq(User.class), Mockito.eq(null), Mockito.anyList(), Mockito.eq(null)); String loginID = RaptorAdapter.getUserLoginId("1"); assertEquals("",loginID); |