|
@ -198,7 +198,7 @@ class RadioPlayerTest { |
|
|
@MethodSource("saveStationOptions") |
|
|
@MethodSource("saveStationOptions") |
|
|
void testSaveStation(String testName, RadioPlayer testRp,String testTyp, String expectedResult) { |
|
|
void testSaveStation(String testName, RadioPlayer testRp,String testTyp, String expectedResult) { |
|
|
String savedStation; |
|
|
String savedStation; |
|
|
if (testTyp == "normal") { |
|
|
|
|
|
|
|
|
if (testTyp.equals("normal")) { |
|
|
savedStation = testRp.savedPlaylist.get(testRp.savedPlaylist.size() - 1);} |
|
|
savedStation = testRp.savedPlaylist.get(testRp.savedPlaylist.size() - 1);} |
|
|
else savedStation = Boolean.toString(testRp.regionPlaylist.isEmpty()); |
|
|
else savedStation = Boolean.toString(testRp.regionPlaylist.isEmpty()); |
|
|
assertThat(savedStation).describedAs(testName).isEqualTo(expectedResult); |
|
|
assertThat(savedStation).describedAs(testName).isEqualTo(expectedResult); |
|
|