|
|
@ -212,4 +212,22 @@ void louderTest(String testName, UsbPlayer inputPlay, int expectedResult) { |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
@ParameterizedTest |
|
|
|
@MethodSource("GoToOptions") |
|
|
|
void GoToTest(String testName, UsbPlayer inputPlay, String expectedResult) { |
|
|
|
String current_Track = inputPlay.getPlayTrack(); |
|
|
|
assertThat(current_Track).describedAs(testName).isEqualTo(expectedResult); |
|
|
|
} |
|
|
|
|
|
|
|
static Stream<Arguments> GoToOptions() { |
|
|
|
UsbPlayer up1 = new UsbPlayer(); |
|
|
|
up1.GoTo("Musik 03.mp3"); |
|
|
|
|
|
|
|
return Stream.of( |
|
|
|
Arguments.of("Go to Song : Musik 03.mp3 ", up1, "Musik 03.mp3") |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |