Browse Source

Test9

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

12
src/test/java/NotizbuchTest.java

@ -92,4 +92,16 @@ class NotizbuchTest {
assertEquals("\n", notizbuch.textArea.getText());
}
@Test
public void testSpeichernUndLadenMitUTF8() {
Notizbuch notizbuch = new Notizbuch();
notizbuch.textArea.setText("Äpfel & Birnen €");
notizbuch.saveNote();
notizbuch.textArea.setText(""); // Setze den Textbereich zurück
notizbuch.loadNote();
assertEquals("Äpfel & Birnen €\n", notizbuch.textArea.getText());
}
}
Loading…
Cancel
Save