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");
|
||||
}
|
||||
|
||||
@Test
|
||||
void robotBlackBox() {
|
||||
// @Test
|
||||
// void robotBlackBox() {
|
||||
|
||||
fs.triggerPower(testid);
|
||||
RobotMagicValueException thrownValue=Assertions.assertThrows(RobotMagicValueException.class,() -> fs.robotInstructions(testid,testZahlen1));
|
||||
assertEquals(thrownValue.getMessage(),fs.robotBlackbox(testid));
|
||||
// fs.triggerPower(testid);
|
||||
// RobotMagicValueException thrownValue=Assertions.assertThrows(RobotMagicValueException.class,() -> fs.robotInstructions(testid,testZahlen1));
|
||||
// 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));
|
||||
}
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue