From 96c9e5c3b65061e1c0becf339d6ca4da8ebda9b2 Mon Sep 17 00:00:00 2001 From: alpina0707 Date: Thu, 17 Feb 2022 00:56:03 +0100 Subject: [PATCH] added first test case for RadioPlayer getOptions() --- .../device/radioPlayer/RadioPlayerTest.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/test/java/device/radioPlayer/RadioPlayerTest.java b/src/test/java/device/radioPlayer/RadioPlayerTest.java index 7e2f5d0..b7cae0c 100644 --- a/src/test/java/device/radioPlayer/RadioPlayerTest.java +++ b/src/test/java/device/radioPlayer/RadioPlayerTest.java @@ -367,7 +367,7 @@ class RadioPlayerTest { ); } @Test - void TestUnmute() { + void testUnmute() { RadioPlayer rp = new RadioPlayer(); rp.setLautstaerke(40); rp.mute(); @@ -418,4 +418,20 @@ class RadioPlayerTest { Arguments.of("Test for getInfoText not contains station info if station not has one", "noStationInfo", rp7, false) ); } + @ParameterizedTest + @MethodSource("getOptionsOptions") + void testGetOptions(String testName, RadioPlayer testRp) { + + assertThat(testRp.getOptions()).describedAs(testName).isNotEqualTo(null); + } + + static Stream getOptionsOptions() { + RadioPlayer rp = new RadioPlayer(); + + + return Stream.of( + Arguments.of("returnValue of getOptions is not null", rp) + + ); + } } \ No newline at end of file