Browse Source

Test8

remotes/origin/hotfix/client/improve-chat-window-appearence
Marc Dimmerling 11 months ago
parent
commit
44eb5b8fe3
  1. 11
      src/test/java/NotizbuchTest.java

11
src/test/java/NotizbuchTest.java

@ -81,4 +81,15 @@ class NotizbuchTest {
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());
}
}
Loading…
Cancel
Save