From c6ad0c4a2e6d4b3642ba769caf4e9712920351e3 Mon Sep 17 00:00:00 2001 From: Marc Dimmerling Date: Fri, 9 Feb 2024 17:46:47 +0100 Subject: [PATCH] Test2 --- src/test/java/NotizbuchTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/test/java/NotizbuchTest.java b/src/test/java/NotizbuchTest.java index 64d57e2..7f030a0 100644 --- a/src/test/java/NotizbuchTest.java +++ b/src/test/java/NotizbuchTest.java @@ -15,6 +15,15 @@ class NotizbuchTest { assertEquals("Testnotiz\n", notizbuch.textArea.getText()); } + @Test + public void testSpeichernMitLeererNotiz() { + Notizbuch notizbuch = new Notizbuch(); + notizbuch.textArea.setText(""); + + notizbuch.saveNote(); + + assertEquals("", notizbuch.textArea.getText()); + }