|
@ -150,10 +150,14 @@ void louderTest(String testName, UsbPlayer inputPlay, int expectedResult) { |
|
|
for (int i = 0; i < 3; i++) {//3 |
|
|
for (int i = 0; i < 3; i++) {//3 |
|
|
up2.Louder_10(); |
|
|
up2.Louder_10(); |
|
|
} |
|
|
} |
|
|
|
|
|
UsbPlayer up3 = new UsbPlayer(); |
|
|
|
|
|
up3.setLautstaerke(100); |
|
|
|
|
|
up3.Louder_10(); |
|
|
|
|
|
|
|
|
return Stream.of( |
|
|
return Stream.of( |
|
|
Arguments.of("Volume was 0, should 10 ", up1, 10), |
|
|
Arguments.of("Volume was 0, should 10 ", up1, 10), |
|
|
Arguments.of("Volume was increased 3 times :30 ", up2, 30) |
|
|
|
|
|
|
|
|
Arguments.of("Volume was increased 3 times :30 ", up2, 30), |
|
|
|
|
|
Arguments.of("Volume is 100 and doesn't change ", up3, 100) |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|