|
@ -82,7 +82,7 @@ class UsbPlayerTest { |
|
|
Arguments.of("Volume is : 1 ", up11, 1), |
|
|
Arguments.of("Volume is : 1 ", up11, 1), |
|
|
Arguments.of("Volume is : 100 ", up22, 100), |
|
|
Arguments.of("Volume is : 100 ", up22, 100), |
|
|
Arguments.of("Volume is muted,no change can be made ", up3, 0), |
|
|
Arguments.of("Volume is muted,no change can be made ", up3, 0), |
|
|
Arguments.of("Volume is muted,a change has been made ", up4, 11) |
|
|
|
|
|
|
|
|
Arguments.of("Volume is unmuted,a change has been made ", up4, 11) |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -109,11 +109,18 @@ class UsbPlayerTest { |
|
|
up3.mute(); |
|
|
up3.mute(); |
|
|
up3.quieter(); |
|
|
up3.quieter(); |
|
|
|
|
|
|
|
|
|
|
|
//forth case |
|
|
|
|
|
UsbPlayer up4 = new UsbPlayer(USBDrive); |
|
|
|
|
|
up4.setLautstaerke(10); |
|
|
|
|
|
up4.mute(); |
|
|
|
|
|
up4.unmute(); |
|
|
|
|
|
up4.quieter(); |
|
|
|
|
|
|
|
|
return Stream.of( |
|
|
return Stream.of( |
|
|
Arguments.of("Volume must stay 0 ", up1, 0), |
|
|
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) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Arguments.of("Volume is muted,no change can be made ", up3, 0), |
|
|
|
|
|
Arguments.of("Volume is unmuted,a change has been made ", up4, 9) |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|