Browse Source

added new test case for play() & changed play() to show if playedStation is in regional or saved playlist

feature-pr-playAddedRegionIndicator
Jan Ortner 3 years ago
parent
commit
54ac5f48b3
  1. 2
      src/test/java/device/radioPlayer/RadioPlayerTest.java

2
src/test/java/device/radioPlayer/RadioPlayerTest.java

@ -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);

Loading…
Cancel
Save