|
|
@ -101,6 +101,18 @@ class testProgramm { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
public void testFakultaetWithZero() { |
|
|
|
String input = "0\n"; |
|
|
|
ByteArrayInputStream in = new ByteArrayInputStream(input.getBytes()); |
|
|
|
System.setIn(in); |
|
|
|
|
|
|
|
ByteArrayOutputStream out = new ByteArrayOutputStream(); |
|
|
|
System.setOut(new PrintStream(out)); |
|
|
|
|
|
|
|
FunktionenAusgelagert.Fakultaet(); |
|
|
|
|
|
|
|
assertTrue(true); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|