|
|
@ -279,10 +279,14 @@ class RadioPlayerTest { |
|
|
|
rp.changeOrderInSavedPlaylist(1); |
|
|
|
RadioPlayer rp1 = new RadioPlayer(); |
|
|
|
rp1.changeOrderInSavedPlaylist(5); |
|
|
|
RadioPlayer rp2 = new RadioPlayer(); |
|
|
|
rp2.next(); |
|
|
|
rp2.changeOrderInSavedPlaylist(-1); |
|
|
|
|
|
|
|
return Stream.of( |
|
|
|
Arguments.of("Test for change order in saved playlist with nr isn`t bigger than playlist size", rp, 0, "Teddy"), |
|
|
|
Arguments.of("Test for change order in saved playlist with nr is than bigger playlist size but at the end of playlist", rp1, 2, "YouFM") |
|
|
|
Arguments.of("Test for change order in saved playlist with nr is than bigger playlist size put at the end of playlist", rp1, 2, "YouFM"), |
|
|
|
Arguments.of("Test for change order in saved playlist with nr is than smaller than 0 at front of playlist", rp2, 0, "Teddy") |
|
|
|
); |
|
|
|
} |
|
|
|
} |