@@ -0,0 +1,1016 @@
+package de.bmoth.app;%0A%0Aimport javafx.embed.swing.JFXPanel;%0Aimport javafx.scene.control.Alert;%0Aimport org.junit.Test;%0Aimport org.testfx.util.WaitForAsyncUtils;%0A%0Aimport java.util.concurrent.Future;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class ErrorAlertTest %7B%0A%0A    private static final String ERROR_TYPE_TEST = %22error.type.test%22;%0A    private static final String ERROR_MSG_TEST = %22error.msg.test%22;%0A%0A    private ErrorAlert alert;%0A%0A    @Test%0A    public void testErrorAlert() %7B%0A        new JFXPanel(); // Initializes the JavaFx Platform%0A        Future%3CVoid%3E f = WaitForAsyncUtils.asyncFx(() -%3E %7B%0A            alert = new ErrorAlert(Alert.AlertType.ERROR, ERROR_TYPE_TEST, ERROR_MSG_TEST);%7D);%0A        WaitForAsyncUtils.waitFor(f);%0A        assertEquals(Alert.AlertType.ERROR, alert.getAlertType());%0A        assertEquals(ERROR_TYPE_TEST + %22!%22, alert.getTitle());%0A        assertEquals(ERROR_TYPE_TEST + %22 occurred.%22, alert.getHeaderText());%0A        assertEquals(ERROR_MSG_TEST, alert.getContentText());%0A    %7D%0A%0A%7D%0A

add test for ErrorAlert