Browse Source

UsbPlayerTest.GoToLastTest fiSecond Case

feature-pr-USB-otherTests
sahar 3 years ago
parent
commit
9bf794bbea
  1. 1
      src/main/java/device/usbPlayer/UsbPlayer.java
  2. 8
      src/test/java/device/usbPlayer/UsbPlayerTest.java

1
src/main/java/device/usbPlayer/UsbPlayer.java

@ -222,6 +222,7 @@ public class UsbPlayer implements Device {
}
public void GoToLast() {
//go to the last Song
setPlayTrack("Musik 03.mp3");
}
}

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

@ -348,9 +348,15 @@ class UsbPlayerTest {
UsbPlayer up1 = new UsbPlayer();
up1.GoToLast();
UsbPlayer up2 = new UsbPlayer();
up2.GoToLast();
up2.GoToLast();
return Stream.of(
Arguments.of("It should go to the first Song ", up1,"Musik 03.mp3")
Arguments.of("It should go to the Last Song ", up1,"Musik 03.mp3"),
Arguments.of("It should go to the Last Song even after calling the function twice ", up2,"Musik 03.mp3")
);
}
Loading…
Cancel
Save