From 356bcaf539c4239342c13ce70f38cc6e17d66914 Mon Sep 17 00:00:00 2001 From: sahar Date: Tue, 15 Feb 2022 17:33:54 +0100 Subject: [PATCH] UsbPlayerTest.isAllAudioTestTest Forth Case (flac) --- src/test/java/device/usbPlayer/UsbPlayerTest.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/test/java/device/usbPlayer/UsbPlayerTest.java b/src/test/java/device/usbPlayer/UsbPlayerTest.java index fc121f7..8999478 100644 --- a/src/test/java/device/usbPlayer/UsbPlayerTest.java +++ b/src/test/java/device/usbPlayer/UsbPlayerTest.java @@ -252,25 +252,34 @@ class UsbPlayerTest { } static Stream isAllAudioOptions() { + //mp3 UsbPlayer up1 = new UsbPlayer(); - + //mp4 UsbPlayer up2 = new UsbPlayer(); ArrayList Pl = new ArrayList(); Pl.add("Musik 01.mp4"); Pl.add("Musik 02.mp4"); Pl.add("Musik 03.mp4"); up2.setPlaylist(Pl); -//m4a + //m4a UsbPlayer up3 = new UsbPlayer(); ArrayList Pl1 = new ArrayList(); Pl1.add("Musik 01.m4a"); Pl1.add("Musik 02.m4a"); Pl1.add("Musik 03.m4a"); up3.setPlaylist(Pl); + //Flac + UsbPlayer up4 = new UsbPlayer(); + ArrayList Pl2 = new ArrayList(); + Pl2.add("Musik 01.flac"); + Pl2.add("Musik 02.flac"); + Pl2.add("Musik 03.flac"); + up4.setPlaylist(Pl); return Stream.of( 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 .m4a ", up3.isAllAudio(), true) + Arguments.of("Check if the Files are .m4a ", up3.isAllAudio(), true), + Arguments.of("Check if the Files are .flac ", up4.isAllAudio(), true) ); }