Browse Source

Test for quieter

feature-pr-revised_louderQuieter
Jan Ortner 3 years ago
parent
commit
81035aa6d7
  1. 6
      src/test/java/device/radioPlayer/RadioPlayerTest.java

6
src/test/java/device/radioPlayer/RadioPlayerTest.java

@ -26,13 +26,17 @@ class RadioPlayerTest {
static Stream<Arguments> quieterLouderOptions() {
RadioPlayer rp1 = new RadioPlayer();
RadioPlayer rp2 = new RadioPlayer();
RadioPlayer rp3 = new RadioPlayer();
rp1.setLautstaerke(0);
rp1.louder();
rp2.setLautstaerke(100);
rp2.louder();
rp3.setLautstaerke(1);
rp3.quieter();
return Stream.of(
Arguments.of("Test for one step louder", rp1, 1),
Arguments.of("Test for max louder", rp2, 100)
Arguments.of("Test for max louder", rp2, 100),
Arguments.of("Test for one step quieter", rp3, 0)
);
}

Loading…
Cancel
Save