|
@ -81,4 +81,15 @@ class NotizbuchTest { |
|
|
|
|
|
|
|
|
assertEquals("Erste Zeile\nZweite Zeile\nDritte Zeile\n", notizbuch.textArea.getText()); |
|
|
assertEquals("Erste Zeile\nZweite Zeile\nDritte Zeile\n", notizbuch.textArea.getText()); |
|
|
} |
|
|
} |
|
|
|
|
|
@Test |
|
|
|
|
|
public void testSpeichernUndLadenMitLeererZeile() { |
|
|
|
|
|
Notizbuch notizbuch = new Notizbuch(); |
|
|
|
|
|
notizbuch.textArea.setText("\n"); |
|
|
|
|
|
|
|
|
|
|
|
notizbuch.saveNote(); |
|
|
|
|
|
|
|
|
|
|
|
notizbuch.loadNote(); |
|
|
|
|
|
|
|
|
|
|
|
assertEquals("\n", notizbuch.textArea.getText()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |