QueueManager { public Track currentTrack() { return queue.get(position); } QueueManager(Random random); Flowable<Pair<Integer, Integer>> mode(); Flowable<Pair<List<Track>, Integer>> queue(); void setQueue(List<Track> queue, long queueItemId); Track currentTrack(); static final int SHUFFLE_OFF; static final int SHUFFLE_ALL; static final int REPEAT_OFF; static final int REPEAT_ALL; static final int REPEAT_ONE; }
@Test public void currentTrack() { Track actualTrack = queueManager.currentTrack(); assertThat(actualTrack, is(queue.get(0))); }