From f98223ea57039f6eb5cd6e95c9ec7dacfd3a31e5 Mon Sep 17 00:00:00 2001 From: sahar Date: Tue, 15 Feb 2022 18:03:13 +0100 Subject: [PATCH] UsbPlayerTest.isAllAudioTestTest seventh Case (mixed Audio and txt) --- src/test/java/device/usbPlayer/UsbPlayerTest.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/test/java/device/usbPlayer/UsbPlayerTest.java b/src/test/java/device/usbPlayer/UsbPlayerTest.java index 1c8ae91..9c553f8 100644 --- a/src/test/java/device/usbPlayer/UsbPlayerTest.java +++ b/src/test/java/device/usbPlayer/UsbPlayerTest.java @@ -289,6 +289,13 @@ class UsbPlayerTest { Pl4.add("Musik 02.aac"); Pl4.add("Musik 03.aac"); up6.setPlaylist(Pl4); + //mixed Audio and text Files in the Album + UsbPlayer up7 = new UsbPlayer(); + ArrayList Pl5 = new ArrayList(); + Pl5.add("Musik 01.aac"); + Pl5.add("Musik 02.txt"); + Pl5.add("Musik 03.aac"); + up7.setPlaylist(Pl5); return Stream.of( 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 .wav ", up4.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) ); }