Browse Source

#33 UnitTest erweitert

remotes/origin/JaFi
jannisfingerhut 2 years ago
parent
commit
1f50e17cfc
  1. 12
      LernProgramm/testProgramm.java

12
LernProgramm/testProgramm.java

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

Loading…
Cancel
Save