test correction

master
Eline 2023-01-09 14:09:00 +01:00
parent e03596ecf2
commit cd575ccf87
3 changed files with 2 additions and 4 deletions

View File

@ -17,8 +17,6 @@ public class R2D2 implements Robot {
this.name=name; this.name=name;
} }
@Override @Override
public int getId() { public int getId() {
return id; return id;

View File

@ -31,7 +31,7 @@ public class C3POTest <SystemOutRule, OutputCapture> {
@Test @Test
public void sortieren() throws RobotException { public void sortieren() throws RobotException {
var list = new int[]{12,6,7,10,18,2}; 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)); Assert.assertEquals("18,12,10,7,6,2",robot.speak(list));

View File

@ -35,7 +35,7 @@ public class R2D2Test<SystemOutRule, OutputCapture> {
@Test @Test
public void sortieren() throws RobotException { public void sortieren() throws RobotException {
var list = new int[]{12,6,7,10,18,2}; 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)); Assert.assertEquals("2,6,7,10,12,18",robot.speak(list));