summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/music/conf/MusicSessionRepositoryHandlerTest.java
diff options
context:
space:
mode:
authorSudarshan Kumar <sudarshan.kumar@att.com>2020-02-18 16:16:26 +0530
committerSudarshan Kumar <sudarshan.kumar@att.com>2020-02-18 21:25:25 +0530
commit8e83c25788017acd56271a72286f7dcbc974e76d (patch)
treed7b1e52bc20367bbb38ae69483c33e71f341fd4b /ecomp-portal-BE-common/src/test/java/org/onap/portalapp/music/conf/MusicSessionRepositoryHandlerTest.java
parent6e50276a42ab82cfe34ced9cf97e545283f37f2a (diff)
Changes made to upgrade pom version
Upgraded pom version Issue-ID: PORTAL-769 Change-Id: I65ae68acda464531d699dcb459d328de19a3c7c7 Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com>
Diffstat (limited to 'ecomp-portal-BE-common/src/test/java/org/onap/portalapp/music/conf/MusicSessionRepositoryHandlerTest.java')
-rw-r--r--ecomp-portal-BE-common/src/test/java/org/onap/portalapp/music/conf/MusicSessionRepositoryHandlerTest.java6
1 files changed, 4 insertions, 2 deletions
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);
}