|
@ -289,6 +289,13 @@ class UsbPlayerTest { |
|
|
Pl4.add("Musik 02.aac"); |
|
|
Pl4.add("Musik 02.aac"); |
|
|
Pl4.add("Musik 03.aac"); |
|
|
Pl4.add("Musik 03.aac"); |
|
|
up6.setPlaylist(Pl4); |
|
|
up6.setPlaylist(Pl4); |
|
|
|
|
|
//mixed Audio and text Files in the Album |
|
|
|
|
|
UsbPlayer up7 = new UsbPlayer(); |
|
|
|
|
|
ArrayList<String> Pl5 = new ArrayList<String>(); |
|
|
|
|
|
Pl5.add("Musik 01.aac"); |
|
|
|
|
|
Pl5.add("Musik 02.txt"); |
|
|
|
|
|
Pl5.add("Musik 03.aac"); |
|
|
|
|
|
up7.setPlaylist(Pl5); |
|
|
|
|
|
|
|
|
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), |
|
@ -296,7 +303,8 @@ class UsbPlayerTest { |
|
|
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), |
|
|
Arguments.of("Check if the Files are .wma ", up5.isAllAudio(), true), |
|
|
Arguments.of("Check if the Files are .aac ", up6.isAllAudio(), true) |
|
|
|
|
|
|
|
|
Arguments.of("Check if the Files are .aac ", up6.isAllAudio(), true), |
|
|
|
|
|
Arguments.of("Check case of mixed Files", up7.isAllAudio(), false) |
|
|
|
|
|
|
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|