package guitests;

import static junit.framework.TestCase.assertTrue;

import java.io.IOException;

import org.junit.Test;

import guitests.guihandles.AlertDialogHandle;
import werkbook.task.commons.events.storage.DataSavingExceptionEvent;

public class ErrorDialogGuiTest extends TaskListGuiTest {

    @Test
    public void showErrorDialogs() throws InterruptedException {
        //Test DataSavingExceptionEvent dialog
        raise(new DataSavingExceptionEvent(new IOException("Stub")));
        AlertDialogHandle alertDialog = mainGui.getAlertDialog("File Op Error");
        //assertTrue(alertDialog.isMatching("Could not save data", "Could not save data to file" + ":\n"
        //                                                                 + "java.io.IOException: Stub"));

    }

}

package guitests;

import static junit.framework.TestCase.assertTrue;

import java.io.IOException;

import org.junit.Test;

import guitests.guihandles.AlertDialogHandle;
import werkbook.task.commons.events.storage.DataSavingExceptionEvent;

public class ErrorDialogGuiTest extends TaskListGuiTest {

    @Test
    public void showErrorDialogs() throws InterruptedException {
        //Test DataSavingExceptionEvent dialog
        raise(new DataSavingExceptionEvent(new IOException("Stub")));
        AlertDialogHandle alertDialog = mainGui.getAlertDialog("File Op Error");
        assertTrue(alertDialog.isMatching("Could not save data", "Could not save data to file" + ":\n"
                                                                         + "java.io.IOException: Stub"));

    }

}

Fix import issues