diff --git a/src/main/java/roboter/R2D2.java b/src/main/java/roboter/R2D2.java index 93895d6..71db3b9 100644 --- a/src/main/java/roboter/R2D2.java +++ b/src/main/java/roboter/R2D2.java @@ -17,8 +17,6 @@ public class R2D2 implements Robot { this.name=name; } - - @Override public int getId() { return id; diff --git a/src/test/java/roboter/C3POTest.java b/src/test/java/roboter/C3POTest.java index 8782ee1..67e6a6d 100644 --- a/src/test/java/roboter/C3POTest.java +++ b/src/test/java/roboter/C3POTest.java @@ -31,7 +31,7 @@ public class C3POTest { @Test public void sortieren() throws RobotException { var list = new int[]{12,6,7,10,18,2}; - Robot robot= RobotFactory.getRobot(Typ.C3PO,"roboter1"); + Robot robot= RobotFactory.getRobot(Typ.C3PO,"roboter2"); Assert.assertEquals("18,12,10,7,6,2",robot.speak(list)); diff --git a/src/test/java/roboter/R2D2Test.java b/src/test/java/roboter/R2D2Test.java index fa2ea19..6501435 100644 --- a/src/test/java/roboter/R2D2Test.java +++ b/src/test/java/roboter/R2D2Test.java @@ -35,7 +35,7 @@ public class R2D2Test { @Test public void sortieren() throws RobotException { var list = new int[]{12,6,7,10,18,2}; - Robot robot= RobotFactory.getRobot(Typ.R2D2,"roboter2"); + Robot robot= RobotFactory.getRobot(Typ.R2D2,"roboterX"); Assert.assertEquals("2,6,7,10,12,18",robot.speak(list));