This commit is contained in:
JonathanFleischmann 2024-07-04 19:25:29 +02:00
parent 4c07efa911
commit 64721f2ab0
2 changed files with 0 additions and 6 deletions

View File

@ -165,8 +165,6 @@ public class E2E_Main {
System.setOut(newOut);
Object returnValue = util.invokeMethod("main", new Class<?>[]{String[].class}, new Object[]{new String[0]});
Assertions.assertNull(returnValue);
Assertions.assertEquals(3, byteArrayOutputStream.toString().length());
// durch die newline wird die Ausgabe um 2 Zeichen länger
Assertions.assertEquals("3", byteArrayOutputStream.toString().substring(0, 1));
System.setOut(originalOut);
} catch (Exception e) {

View File

@ -141,8 +141,6 @@ public class E2E_Print {
System.setOut(newOut);
Object returnValue = util.invokeMethod("printIt", new Class<?>[]{char.class}, new Object[]{'a'});
Assertions.assertNull(returnValue);
Assertions.assertEquals(3, byteArrayOutputStream.toString().length());
// durch die newline wird die Ausgabe um 2 Zeichen länger
Assertions.assertEquals("a", byteArrayOutputStream.toString().substring(0, 1));
System.setOut(originalOut);
} catch (Exception e) {
@ -163,8 +161,6 @@ public class E2E_Print {
System.setOut(newOut);
Object returnValue = util.invokeMethod("printMoreComplex", new Class<?>[]{int.class, int.class}, new Object[]{5, 10});
Assertions.assertNull(returnValue);
Assertions.assertEquals(6, byteArrayOutputStream.toString().length());
// durch die newline wird die Ausgabe um 2 Zeichen länger
Assertions.assertEquals("true", byteArrayOutputStream.toString().substring(0, 4));
System.setOut(originalOut);
} catch (Exception e) {