|
@ -268,18 +268,26 @@ class UsbPlayerTest { |
|
|
Pl1.add("Musik 02.m4a"); |
|
|
Pl1.add("Musik 02.m4a"); |
|
|
Pl1.add("Musik 03.m4a"); |
|
|
Pl1.add("Musik 03.m4a"); |
|
|
up3.setPlaylist(Pl1); |
|
|
up3.setPlaylist(Pl1); |
|
|
//Flac |
|
|
|
|
|
|
|
|
//wav |
|
|
UsbPlayer up4 = new UsbPlayer(); |
|
|
UsbPlayer up4 = new UsbPlayer(); |
|
|
ArrayList<String> Pl2 = new ArrayList<String>(); |
|
|
ArrayList<String> Pl2 = new ArrayList<String>(); |
|
|
Pl2.add("Musik 01.wav"); |
|
|
Pl2.add("Musik 01.wav"); |
|
|
Pl2.add("Musik 02.wav"); |
|
|
Pl2.add("Musik 02.wav"); |
|
|
Pl2.add("Musik 03.wav"); |
|
|
Pl2.add("Musik 03.wav"); |
|
|
up4.setPlaylist(Pl2); |
|
|
up4.setPlaylist(Pl2); |
|
|
|
|
|
//wma |
|
|
|
|
|
UsbPlayer up5 = new UsbPlayer(); |
|
|
|
|
|
ArrayList<String> Pl3 = new ArrayList<String>(); |
|
|
|
|
|
Pl3.add("Musik 01.wma"); |
|
|
|
|
|
Pl3.add("Musik 02.wma"); |
|
|
|
|
|
Pl3.add("Musik 03.wma"); |
|
|
|
|
|
up5.setPlaylist(Pl3); |
|
|
return Stream.of( |
|
|
return Stream.of( |
|
|
Arguments.of("Check if the Files are .mp3 ", up1.isAllAudio(), true), |
|
|
Arguments.of("Check if the Files are .mp3 ", up1.isAllAudio(), true), |
|
|
Arguments.of("Check if the Files are .mp4 ", up2.isAllAudio(), true), |
|
|
Arguments.of("Check if the Files are .mp4 ", up2.isAllAudio(), true), |
|
|
Arguments.of("Check if the Files are .m4a ", up3.isAllAudio(), true), |
|
|
Arguments.of("Check if the Files are .m4a ", up3.isAllAudio(), true), |
|
|
Arguments.of("Check if the Files are .wav ", up4.isAllAudio(), true) |
|
|
|
|
|
|
|
|
Arguments.of("Check if the Files are .wav ", up4.isAllAudio(), true), |
|
|
|
|
|
Arguments.of("Check if the Files are .wma ", up5.isAllAudio(), true) |
|
|
|
|
|
|
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|