|
|
@ -114,4 +114,21 @@ void louderTest(String testName, UsbPlayer inputPlay, int expectedResult) { |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
//////////////// |
|
|
|
@ParameterizedTest |
|
|
|
@MethodSource("PrevOptions") |
|
|
|
void PrevTest(String testName, UsbPlayer inputPlay, String expectedResult) { |
|
|
|
String current_Track = inputPlay.getPlayTrack(); |
|
|
|
assertThat(current_Track).describedAs(testName).isEqualTo(expectedResult); |
|
|
|
} |
|
|
|
|
|
|
|
static Stream<Arguments> PrevOptions() { |
|
|
|
UsbPlayer up1 = new UsbPlayer(); |
|
|
|
up1.prev(); |
|
|
|
|
|
|
|
return Stream.of( |
|
|
|
Arguments.of("From first-Song to last-Song : Musik 03.mp3 ", up1, "Musik 03.mp3") |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
} |