|
@ -92,4 +92,16 @@ class NotizbuchTest { |
|
|
|
|
|
|
|
|
assertEquals("\n", notizbuch.textArea.getText()); |
|
|
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()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |