Assertion added in org.libresonic.player.service.MediaScannerServiceTestCase.testScanLibrary

Signed-off-by: Rémi Cocula <rcocula@gmail.com>
master
remi 8 years ago committed by Rémi Cocula
parent 26793653a1
commit dd88ac6806
  1. 6
      libresonic-main/src/test/java/org/libresonic/player/service/MediaScannerServiceTestCase.java

@ -72,9 +72,6 @@ public class MediaScannerServiceTestCase extends TestCase {
*/ */
public void testScanLibrary() { public void testScanLibrary() {
//startMetricsReport();
Timer globalTimer = metrics.timer(MetricRegistry.name(MediaScannerServiceTestCase.class, "Timer.global")); Timer globalTimer = metrics.timer(MetricRegistry.name(MediaScannerServiceTestCase.class, "Timer.global"));
Timer.Context globalTimerContext = globalTimer.time(); Timer.Context globalTimerContext = globalTimer.time();
@ -107,9 +104,8 @@ public class MediaScannerServiceTestCase extends TestCase {
Assert.assertEquals(5,allAlbums.size()); Assert.assertEquals(5,allAlbums.size());
System.out.println("--- *********************** ---"); System.out.println("--- *********************** ---");
List<MediaFile> listeSongs = mediaFileDao.getSongsByGenre("Baroque Instrumental",0,0,musicFolderDao.getAllMusicFolders()); List<MediaFile> listeSongs = mediaFileDao.getSongsByGenre("Baroque Instrumental",0,0,musicFolderDao.getAllMusicFolders());
Assert.assertEquals(2,listeSongs.size());
// display out metrics report // display out metrics report
ConsoleReporter reporter = ConsoleReporter.forRegistry(metrics) ConsoleReporter reporter = ConsoleReporter.forRegistry(metrics)

Loading…
Cancel
Save