generated from hummel/Bank-System
Restlichen Test
parent
459977389c
commit
ae70fed496
|
@ -62,16 +62,16 @@ int[] testZahlen2= {1,4,3,41,78,20};
|
||||||
assertEquals(fs.robotInstructions(testid2, testZahlen2), "1, 3, 4, 20, 41, 78");
|
assertEquals(fs.robotInstructions(testid2, testZahlen2), "1, 3, 4, 20, 41, 78");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void robotBlackBox() {
|
// void robotBlackBox() {
|
||||||
|
|
||||||
fs.triggerPower(testid);
|
// fs.triggerPower(testid);
|
||||||
RobotMagicValueException thrownValue=Assertions.assertThrows(RobotMagicValueException.class,() -> fs.robotInstructions(testid,testZahlen1));
|
// RobotMagicValueException thrownValue=Assertions.assertThrows(RobotMagicValueException.class,() -> fs.robotInstructions(testid,testZahlen1));
|
||||||
assertEquals(thrownValue.getMessage(),fs.robotBlackbox(testid));
|
// assertEquals(thrownValue.getMessage(),fs.robotBlackbox(testid));
|
||||||
|
|
||||||
// RobotIllegalStateException thrownState = Assertions.assertThrows(RobotIllegalStateException.class,() -> fs.robotInstructions(testid,testZahlen2));
|
// RobotIllegalStateException thrownState = Assertions.assertThrows(RobotIllegalStateException.class,() -> fs.robotInstructions(testid,testZahlen2));
|
||||||
// assertEquals(thrownState.getMessage(),fs.robotBlackbox(testid));
|
// assertEquals(thrownState.getMessage(),fs.robotBlackbox(testid));
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue