|
@ -19,7 +19,7 @@ class RadioPlayerTest { |
|
|
@ParameterizedTest |
|
|
@ParameterizedTest |
|
|
@MethodSource("quieterLouderOptions") |
|
|
@MethodSource("quieterLouderOptions") |
|
|
void quieterLouderTest(String testName, RadioPlayer testRp, int expectedResult) { |
|
|
void quieterLouderTest(String testName, RadioPlayer testRp, int expectedResult) { |
|
|
int volume = testRp.getLautstaerke(); |
|
|
|
|
|
|
|
|
int volume = testRp.getVolume(); |
|
|
assertThat(volume).describedAs(testName).isEqualTo(expectedResult); |
|
|
assertThat(volume).describedAs(testName).isEqualTo(expectedResult); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -67,12 +67,6 @@ class RadioPlayerTest { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
@Test |
|
|
|
|
|
void getVolume() { |
|
|
|
|
|
} |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
@ParameterizedTest |
|
|
@ParameterizedTest |
|
|
@MethodSource("prevNextOptions") |
|
|
@MethodSource("prevNextOptions") |
|
|
void prevNextTest(String testName, RadioPlayer testRp, String expectedResult) { |
|
|
void prevNextTest(String testName, RadioPlayer testRp, String expectedResult) { |
|
|