X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ecomp-portal-BE-common%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fportalapp%2Fmusic%2Fconf%2FMusicSessionRepositoryHandlerTest.java;h=2b0c9fd802ac2ecfb089b736d7745f42d390da9c;hb=8e83c25788017acd56271a72286f7dcbc974e76d;hp=3b622f2e7aae5cadeae3d5dce2873aaeb87f957b;hpb=6e50276a42ab82cfe34ced9cf97e545283f37f2a;p=portal.git diff --git a/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/music/conf/MusicSessionRepositoryHandlerTest.java b/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/music/conf/MusicSessionRepositoryHandlerTest.java index 3b622f2e..2b0c9fd8 100644 --- a/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/music/conf/MusicSessionRepositoryHandlerTest.java +++ b/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/music/conf/MusicSessionRepositoryHandlerTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START========================================== * ONAP Portal * =================================================================== - * Copyright © 2018 AT&T Intellectual Property. All rights reserved. + * Copyright © 2018 AT&T Intellectual Property. All rights reserved. * =================================================================== * * Unless otherwise specified, all software contained herein is licensed @@ -87,6 +87,7 @@ public class MusicSessionRepositoryHandlerTest { @Test public void getTest() throws Exception { Mockito.when(MusicCore.get(Matchers.any(PreparedQueryObject.class))).thenReturn(resultSet); + Mockito.when(musicService.modEventualGet(Matchers.any(PreparedQueryObject.class))).thenReturn(resultSet); Mockito.when(musicService.getMetaAttribute("test_id")).thenReturn(ms); Session session = musicSessionRepositoryHandler.get("test_id"); assertNotNull(session); @@ -96,7 +97,8 @@ public class MusicSessionRepositoryHandlerTest { @Test public void getFailWithIdTest() throws Exception { Mockito.when(MusicCore.get(Matchers.any(PreparedQueryObject.class))).thenReturn(resultSet); - Mockito.when((musicService).getMetaAttribute("test_id")).thenThrow(new NullPointerException()); + Mockito.when(musicService.modEventualGet(Matchers.any(PreparedQueryObject.class))).thenReturn(resultSet); + Mockito.when(musicService.getMetaAttribute("test_id")).thenThrow(new NullPointerException()); Session session = musicSessionRepositoryHandler.get("test_id"); assertNull(session); }