From d57de4380a416d172bb46c247ccf7c57db7d67fd Mon Sep 17 00:00:00 2001 From: sahar Date: Sun, 13 Feb 2022 14:53:41 +0100 Subject: [PATCH] UsbPlayerTest.GoToTest Forth Case --- src/test/java/device/usbPlayer/UsbPlayerTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/java/device/usbPlayer/UsbPlayerTest.java b/src/test/java/device/usbPlayer/UsbPlayerTest.java index 20d83d5..2a613fb 100644 --- a/src/test/java/device/usbPlayer/UsbPlayerTest.java +++ b/src/test/java/device/usbPlayer/UsbPlayerTest.java @@ -229,10 +229,15 @@ void louderTest(String testName, UsbPlayer inputPlay, int expectedResult) { UsbPlayer up3 = new UsbPlayer(); up3.GoTo("Musik 02"); + UsbPlayer up4 = new UsbPlayer(); + up4.next(); + up4.GoTo("Musik"); + return Stream.of( Arguments.of("Go to Song : Musik 03.mp3 ", up1, "Musik 03.mp3"), Arguments.of("Go to Song that is not in the Album: Musik 04.mp3 ", up2, "Musik 01.mp3"), - Arguments.of("Go to Song without writing the full Name : Musik 02 ", up3, "Musik 02.mp3") + Arguments.of("Go to Song without writing the full Name : Musik 02 ", up3, "Musik 02.mp3"), + Arguments.of("Go to Song and write a Name that many songs starts with : Musik", up4, "Musik 01.mp3") ); }