|
@ -47,12 +47,16 @@ class RadioPlayerTest { |
|
|
int currentIndex=rp.Playlist.indexOf(rp.playTrack); |
|
|
int currentIndex=rp.Playlist.indexOf(rp.playTrack); |
|
|
assertThat(rp.playTrack).isEqualTo(rp.Playlist.get((currentIndex)%rp.Playlist.size())); |
|
|
assertThat(rp.playTrack).isEqualTo(rp.Playlist.get((currentIndex)%rp.Playlist.size())); |
|
|
} |
|
|
} |
|
|
/* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
void prev() { |
|
|
void prev() { |
|
|
} |
|
|
|
|
|
|
|
|
rp.prev(); |
|
|
|
|
|
int currentIndex=rp.Playlist.indexOf(rp.playTrack); |
|
|
|
|
|
assertThat(rp.playTrack).isEqualTo(rp.Playlist.get((currentIndex)%rp.Playlist.size())); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
/* |
|
|
@Test |
|
|
@Test |
|
|
void getInfoText() { |
|
|
void getInfoText() { |
|
|
} |
|
|
} |
|
|