From 0751a3348daec19a01caf542357dedf1a77fdf3f Mon Sep 17 00:00:00 2001 From: sahar Date: Fri, 18 Feb 2022 00:07:44 +0100 Subject: [PATCH] UsbPlayerTest.louder_10_Test Fifth Case --- src/test/java/device/usbPlayer/UsbPlayerTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test/java/device/usbPlayer/UsbPlayerTest.java b/src/test/java/device/usbPlayer/UsbPlayerTest.java index 4da5857..48ffd9c 100644 --- a/src/test/java/device/usbPlayer/UsbPlayerTest.java +++ b/src/test/java/device/usbPlayer/UsbPlayerTest.java @@ -202,12 +202,19 @@ class UsbPlayerTest { up4.setLautstaerke(10); up4.mute(); up4.Louder_10(); + //fifth case + UsbPlayer up5 = new UsbPlayer(USBDrive); + up5.setLautstaerke(10); + up5.mute(); + up5.unmute(); + up5.Louder_10(); return Stream.of( Arguments.of("Volume was 0, should be 10 ", up1, 10), Arguments.of("Volume was 0, should be 30 ", up2, 30), Arguments.of("Volume was 100, should stay 100 ", up3, 100), - Arguments.of("Volume is muted,no change can be made ", up4, 0) + Arguments.of("Volume is muted,no change can be made ", up4, 0), + Arguments.of("Volume is unmuted,a change has been made ", up5, 20) ); }