From 81035aa6d7855bc190ba8af86831aa07b27da886 Mon Sep 17 00:00:00 2001 From: alpina0707 Date: Wed, 9 Feb 2022 19:22:32 +0100 Subject: [PATCH] Test for quieter --- src/test/java/device/radioPlayer/RadioPlayerTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/java/device/radioPlayer/RadioPlayerTest.java b/src/test/java/device/radioPlayer/RadioPlayerTest.java index e5ba0fc..1239eb5 100644 --- a/src/test/java/device/radioPlayer/RadioPlayerTest.java +++ b/src/test/java/device/radioPlayer/RadioPlayerTest.java @@ -26,13 +26,17 @@ class RadioPlayerTest { static Stream 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) ); }