Browse Source

UsbPlayerTest.GoToTest Forth Case

feature-pr-USB-10Louder
sahar 3 years ago
parent
commit
d57de4380a
  1. 7
      src/test/java/device/usbPlayer/UsbPlayerTest.java

7
src/test/java/device/usbPlayer/UsbPlayerTest.java

@ -229,10 +229,15 @@ void louderTest(String testName, UsbPlayer inputPlay, int expectedResult) {
UsbPlayer up3 = new UsbPlayer(); UsbPlayer up3 = new UsbPlayer();
up3.GoTo("Musik 02"); up3.GoTo("Musik 02");
UsbPlayer up4 = new UsbPlayer();
up4.next();
up4.GoTo("Musik");
return Stream.of( return Stream.of(
Arguments.of("Go to Song : Musik 03.mp3 ", up1, "Musik 03.mp3"), Arguments.of("Go to Song : Musik 03.mp3 ", up1, "Musik 03.mp3"),
Arguments.of("Go to Song that is not in the Album: Musik 04.mp3 ", up2, "Musik 01.mp3"), Arguments.of("Go to Song that is not in the Album: Musik 04.mp3 ", up2, "Musik 01.mp3"),
Arguments.of("Go to Song without writing the full Name : Musik 02 ", up3, "Musik 02.mp3")
Arguments.of("Go to Song without writing the full Name : Musik 02 ", up3, "Musik 02.mp3"),
Arguments.of("Go to Song and write a Name that many songs starts with : Musik", up4, "Musik 01.mp3")
); );
} }

Loading…
Cancel
Save