test correction
parent
e03596ecf2
commit
cd575ccf87
|
@ -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;
|
||||||
|
|
|
@ -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));
|
||||||
|
|
||||||
|
|
|
@ -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));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue