From edd53e26a3c171398daed2288373c2ae1ef502d8 Mon Sep 17 00:00:00 2001 From: remi Date: Thu, 17 Nov 2016 21:53:25 +0100 Subject: [PATCH] Assertion added in org.libresonic.player.service.MediaScannerServiceTestCase.testScanLibrary --- .../player/service/MediaScannerServiceTestCase.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libresonic-main/src/test/java/org/libresonic/player/service/MediaScannerServiceTestCase.java b/libresonic-main/src/test/java/org/libresonic/player/service/MediaScannerServiceTestCase.java index f06dce87..12f76490 100644 --- a/libresonic-main/src/test/java/org/libresonic/player/service/MediaScannerServiceTestCase.java +++ b/libresonic-main/src/test/java/org/libresonic/player/service/MediaScannerServiceTestCase.java @@ -72,9 +72,6 @@ public class MediaScannerServiceTestCase extends TestCase { */ public void testScanLibrary() { - //startMetricsReport(); - - Timer globalTimer = metrics.timer(MetricRegistry.name(MediaScannerServiceTestCase.class, "Timer.global")); Timer.Context globalTimerContext = globalTimer.time(); @@ -107,9 +104,8 @@ public class MediaScannerServiceTestCase extends TestCase { Assert.assertEquals(5,allAlbums.size()); System.out.println("--- *********************** ---"); - - List listeSongs = mediaFileDao.getSongsByGenre("Baroque Instrumental",0,0,musicFolderDao.getAllMusicFolders()); + Assert.assertEquals(2,listeSongs.size()); // display out metrics report ConsoleReporter reporter = ConsoleReporter.forRegistry(metrics)