My fork of airsonic with experimental fixes and improvements. See branch "custom"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 lines
1.1 KiB

package org.airsonic.player.service.search;
import org.airsonic.player.domain.MusicFolder;
import org.airsonic.player.util.MusicFolderTestData;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
/**
* Test case interface for scanning MusicFolder.
*/
public interface AirsonicHomeTest {
/**
* MusicFolder used by test class.
*
* @return MusicFolder used by test class
*/
default List<MusicFolder> getMusicFolders() {
return MusicFolderTestData.getTestMusicFolders();
};
/**
* Whether the data input has been completed.
*
* @return Static AtomicBoolean indicating whether the data injection has been
* completed
*/
abstract AtomicBoolean dataBasePopulated();
/**
* Whether the data input has been completed.
*
* @return Static AtomicBoolean indicating whether the data injection has been
* completed
*/
abstract AtomicBoolean dataBaseReady();
/**
* Populate the database only once.
* It is called in the @Before granted method.
*/
void populateDatabaseOnlyOnce();
}