|
|
@ -114,7 +114,6 @@ void louderTest(String testName, UsbPlayer inputPlay, int expectedResult) { |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
//////////////// |
|
|
|
@ParameterizedTest |
|
|
|
@MethodSource("PrevOptions") |
|
|
|
void PrevTest(String testName, UsbPlayer inputPlay, String expectedResult) { |
|
|
@ -137,4 +136,20 @@ void louderTest(String testName, UsbPlayer inputPlay, int expectedResult) { |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
@ParameterizedTest |
|
|
|
@MethodSource("louder_10_Options") |
|
|
|
void louder_10_Test(String testName, UsbPlayer inputPlay, int expectedResult) { |
|
|
|
int volumeNum = inputPlay.getLautstaerke(); |
|
|
|
assertThat(volumeNum).describedAs(testName).isEqualTo(expectedResult); |
|
|
|
} |
|
|
|
|
|
|
|
static Stream<Arguments> louder_10_Options() { |
|
|
|
UsbPlayer up1 = new UsbPlayer(); |
|
|
|
up1.Louder_10(); |
|
|
|
|
|
|
|
return Stream.of( |
|
|
|
Arguments.of("Volume was 0, should 10 ", up1, 10) |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
} |