|
|
@ -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) |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|