Restlichen Test

main
Drees 2023-01-09 18:39:07 +01:00
parent 459977389c
commit ae70fed496
1 changed files with 7 additions and 7 deletions

View File

@ -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));
} // }
} }