|
|
@ -336,5 +336,21 @@ class UsbPlayerTest { |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
@ParameterizedTest |
|
|
|
@MethodSource("GoToLastOptions") |
|
|
|
void GoToLastTest(String testName, UsbPlayer inputUSB, String expectedResult) { |
|
|
|
String firstSong = inputUSB.getPlayTrack(); |
|
|
|
assertThat(firstSong ).describedAs(testName).isEqualTo(expectedResult); |
|
|
|
} |
|
|
|
|
|
|
|
static Stream<Arguments> GoToLastOptions() { |
|
|
|
UsbPlayer up1 = new UsbPlayer(); |
|
|
|
up1.GoToLast(); |
|
|
|
|
|
|
|
|
|
|
|
return Stream.of( |
|
|
|
Arguments.of("It should go to the first Song ", up1,"Musik 03.mp3") |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
} |