|
|
@ -79,14 +79,25 @@ class UsbPlayerTest { |
|
|
|
|
|
|
|
static Stream<Arguments> quieterOptions() { |
|
|
|
USB_Stick USBDrive = new USB_Stick(); |
|
|
|
//first case |
|
|
|
UsbPlayer up1 = new UsbPlayer(USBDrive); |
|
|
|
up1.quieter(); |
|
|
|
//second case |
|
|
|
UsbPlayer up2 = new UsbPlayer(USBDrive); |
|
|
|
up2.setLautstaerke(10); |
|
|
|
up2.quieter(); |
|
|
|
|
|
|
|
//third case |
|
|
|
UsbPlayer up3 = new UsbPlayer(USBDrive); |
|
|
|
up3.setLautstaerke(10); |
|
|
|
up3.mute(); |
|
|
|
up3.quieter(); |
|
|
|
|
|
|
|
return Stream.of( |
|
|
|
Arguments.of("Volume must stay 0 ", up1, 0), |
|
|
|
Arguments.of("Volume must be 9 ", up2, 9) |
|
|
|
Arguments.of("Volume must be 9 ", up2, 9), |
|
|
|
Arguments.of("Volume is muted,no change can be made ", up3, 0) |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|