summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-music/src/test
diff options
context:
space:
mode:
authorburdziak <olaf.burdziakowski@nokia.com>2019-04-11 15:29:58 +0200
committerburdziak <olaf.burdziakowski@nokia.com>2019-04-19 12:36:54 +0200
commit122a5255adf6255584a8eef860424e3ecffcfd47 (patch)
tree5e868c94d923c90d790a8fd28f2615a12d88a3bf /ecomp-sdk/epsdk-music/src/test
parentfa5f20d91c416a855f0d6afe157db8250574617c (diff)
Fix sonar issues (part) in MusicService
Change-Id: I043cb7e3ea4c3f1ad450e07966d8c2a098e0936e Issue-ID: PORTAL-523 Signed-off-by: burdziak <olaf.burdziakowski@nokia.com>
Diffstat (limited to 'ecomp-sdk/epsdk-music/src/test')
-rw-r--r--ecomp-sdk/epsdk-music/src/test/java/org/onap/portalapp/music/conf/MusicSessionTest.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/ecomp-sdk/epsdk-music/src/test/java/org/onap/portalapp/music/conf/MusicSessionTest.java b/ecomp-sdk/epsdk-music/src/test/java/org/onap/portalapp/music/conf/MusicSessionTest.java
index 65290d48..fab1ba7b 100644
--- a/ecomp-sdk/epsdk-music/src/test/java/org/onap/portalapp/music/conf/MusicSessionTest.java
+++ b/ecomp-sdk/epsdk-music/src/test/java/org/onap/portalapp/music/conf/MusicSessionTest.java
@@ -233,14 +233,7 @@ public class MusicSessionTest {
}
@Test
- public void removeAttributeMusicServiceExceptionTest() throws MusicServiceException, MusicLockingException {
- Mockito.when(MusicService.removeAttribute(Matchers.anyString(), Matchers.anyString()))
- .thenThrow(new MusicServiceException());
- musicSession.removeAttribute("test_attr_name");
- }
-
- @Test
- public void removeAttributeMusicLockingExceptionTest() throws MusicServiceException, MusicLockingException {
+ public void removeAttributeMusicLockingExceptionTest() throws MusicLockingException {
Mockito.when(MusicService.removeAttribute(Matchers.anyString(), Matchers.anyString()))
.thenThrow(new MusicLockingException());
musicSession.removeAttribute("test_attr_name");