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