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