Browse Source

added first test case for RadioPlayer getOptions()

feature-pr-RadioPlayer-getOptions
Jan Ortner 3 years ago
parent
commit
96c9e5c3b6
  1. 18
      src/test/java/device/radioPlayer/RadioPlayerTest.java

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

@ -367,7 +367,7 @@ class RadioPlayerTest {
);
}
@Test
void TestUnmute() {
void testUnmute() {
RadioPlayer rp = new RadioPlayer();
rp.setLautstaerke(40);
rp.mute();
@ -418,4 +418,20 @@ class RadioPlayerTest {
Arguments.of("Test for getInfoText not contains station info if station not has one", "noStationInfo", rp7, false)
);
}
@ParameterizedTest
@MethodSource("getOptionsOptions")
void testGetOptions(String testName, RadioPlayer testRp) {
assertThat(testRp.getOptions()).describedAs(testName).isNotEqualTo(null);
}
static Stream<Arguments> getOptionsOptions() {
RadioPlayer rp = new RadioPlayer();
return Stream.of(
Arguments.of("returnValue of getOptions is not null", rp)
);
}
}
Loading…
Cancel
Save