diff --git a/src/main/java/BordComputer.java b/src/main/java/BordComputer.java index 6dda364..b00ec43 100644 --- a/src/main/java/BordComputer.java +++ b/src/main/java/BordComputer.java @@ -47,18 +47,10 @@ public class BordComputer { //===== Hilf-Funktionen ====== - public Object getInstanceByName(String deviceName){ + public Device getInstanceByName(String deviceName){ for (int i = 0; i playDate()throws ClassNotFoundException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException { BordComputer bordComputer = new BordComputer(); bordComputer.readConfig(); return Stream.of( - Arguments.of("[CDPlayer-> play(): after all preconditions are met] => ShouldReturnAnItemToPlay","Case1",bordComputer,"CDPlayer") + Arguments.of("[CDPlayer-> play(): after all preconditions are met] => ShouldReturnAnItemToPlay","Case1",bordComputer,"CDPlayer"), + Arguments.of("[RadioPlayer-> play(): after all preconditions are met] => ShouldReturnAnItemToPlay","Case2",bordComputer,"RadioPlayer") ); }