From 5040958240f5deb1330ef7b9ec7dfcf6be8b60f1 Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Thu, 11 Nov 2021 21:49:39 +0100 Subject: [PATCH 1/2] added method invalidInput --- src/TextOutput.java | 7 +++++++ test/TextOutputTest.java | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/TextOutput.java b/src/TextOutput.java index 4b5c46e..c52739a 100644 --- a/src/TextOutput.java +++ b/src/TextOutput.java @@ -130,4 +130,11 @@ public class TextOutput { public void errorInvalidCommand() { System.err.println("Invalid Command"); } + + /** + * Method to give out the Error "Invalid Input". + */ + public void invalidInput() { + System.err.println("Invalid Input"); + } } diff --git a/test/TextOutputTest.java b/test/TextOutputTest.java index 57bb624..17d72b9 100644 --- a/test/TextOutputTest.java +++ b/test/TextOutputTest.java @@ -17,7 +17,7 @@ class TextOutputTest { text.add("Virtute praecedunt, quod fere cotidianis proeliis cum Germanis contendunt, septentr ionesimmensoslongusw ordos."); text.add("Virtutedasjdhashdkjhakjdhakdshjkashd praecedunt, quod fere cotidianis proeliis cum"); //text.add("ordos."); - //text.add("1234"); + text.add("1234"); text.add("12417575147517845 445264565"); text.add(" "); //text.add("1eeeeeee8597389751"); From 3e2bfbaf420247667927c0f9a1a8deb7783a3af0 Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Thu, 11 Nov 2021 21:55:45 +0100 Subject: [PATCH 2/2] removed method invalidInput --- src/TextOutput.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/TextOutput.java b/src/TextOutput.java index c52739a..4b5c46e 100644 --- a/src/TextOutput.java +++ b/src/TextOutput.java @@ -130,11 +130,4 @@ public class TextOutput { public void errorInvalidCommand() { System.err.println("Invalid Command"); } - - /** - * Method to give out the Error "Invalid Input". - */ - public void invalidInput() { - System.err.println("Invalid Input"); - } }