|
|
@ -413,14 +413,21 @@ class UsbPlayerTest { |
|
|
|
|
|
|
|
static Stream<Arguments> getInfoTextOptions() { |
|
|
|
USB_Stick USBDrive = new USB_Stick(); |
|
|
|
ArrayList<String> Fileslist = new ArrayList<String>(); |
|
|
|
Fileslist.add("file 01.txt"); |
|
|
|
Fileslist.add("file 02.txt"); |
|
|
|
Fileslist.add("file 03.txt"); |
|
|
|
USB_Stick USBwithTXT = new USB_Stick(Fileslist); |
|
|
|
//USB_Stick emptyUSB = new USB_Stick(""); |
|
|
|
//first case |
|
|
|
UsbPlayer up1 = new UsbPlayer(USBDrive); |
|
|
|
|
|
|
|
|
|
|
|
//Second case |
|
|
|
UsbPlayer up2 = new UsbPlayer(USBwithTXT); |
|
|
|
|
|
|
|
return Stream.of( |
|
|
|
Arguments.of("USB Player with Albums ", up1,"USB Player is on : "+up1.getPlayTrack()) |
|
|
|
Arguments.of("USB Player with Albums ", up1,"USB Player is on : "+up1.getPlayTrack()), |
|
|
|
Arguments.of("USB Player with no Albums ", up2,"USB Player with no Albums") |
|
|
|
); |
|
|
|
} |
|
|
|
|