本文整理汇总了Java中net.sourceforge.subsonic.domain.PlayQueue.Status类的典型用法代码示例。如果您正苦于以下问题:Java Status类的具体用法?Java Status怎么用?Java Status使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Status类属于net.sourceforge.subsonic.domain.PlayQueue包,在下文中一共展示了Status类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testStatus
import net.sourceforge.subsonic.domain.PlayQueue.Status; //导入依赖的package包/类
public void testStatus() throws Exception {
PlayQueue playQueue = new PlayQueue();
assertEquals(Status.PLAYING, playQueue.getStatus());
playQueue.setStatus(Status.STOPPED);
assertEquals(Status.STOPPED, playQueue.getStatus());
playQueue.addFiles(true, new TestMediaFile());
assertEquals(Status.PLAYING, playQueue.getStatus());
playQueue.clear();
assertEquals(Status.PLAYING, playQueue.getStatus());
}
示例2: testPlayAfterEndReached
import net.sourceforge.subsonic.domain.PlayQueue.Status; //导入依赖的package包/类
public void testPlayAfterEndReached() throws Exception {
PlayQueue playQueue = createPlaylist(2, "A", "B", "C");
playQueue.setStatus(Status.PLAYING);
playQueue.next();
assertNull(playQueue.getCurrentFile());
assertEquals(Status.STOPPED, playQueue.getStatus());
playQueue.setStatus(Status.PLAYING);
assertEquals(Status.PLAYING, playQueue.getStatus());
assertEquals(0, playQueue.getIndex());
assertEquals("A", playQueue.getCurrentFile().getName());
}