|
|
@ -242,5 +242,22 @@ void louderTest(String testName, UsbPlayer inputPlay, int expectedResult) { |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
@ParameterizedTest |
|
|
|
@MethodSource("isAllAudioOptions") |
|
|
|
void isAllAudioTest(String testName, boolean inputTestResult, boolean expectedResult) { |
|
|
|
// String current_Track = inputPlay.getPlayTrack(); |
|
|
|
assertThat(inputTestResult).describedAs(testName).isEqualTo(expectedResult); |
|
|
|
} |
|
|
|
|
|
|
|
static Stream<Arguments> isAllAudioOptions() { |
|
|
|
UsbPlayer up1 = new UsbPlayer(); |
|
|
|
//up1.GoTo("Musik 03.mp3"); |
|
|
|
|
|
|
|
return Stream.of( |
|
|
|
Arguments.of("Go to Song : Musik 03.mp3 ", up1.isAllAudio(), true) |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |