package org.eclipse.cdt.debug.edc.tests; | |
import org.eclipse.cdt.debug.edc.internal.ui.IconAndMessageAndDetailsDialog; | |
import org.eclipse.core.runtime.IStatus; | |
import org.eclipse.ui.PlatformUI; | |
import org.junit.AfterClass; | |
import org.junit.Before; | |
import org.junit.BeforeClass; | |
import org.junit.Test; | |
public class ConsoleErrorDialog { | |
@BeforeClass | |
public static void setUpBeforeClass() throws Exception { | |
} | |
@AfterClass | |
public static void tearDownAfterClass() throws Exception { | |
} | |
protected IconAndMessageAndDetailsDialog dialog; | |
@Before | |
public void setUp() throws Exception { | |
PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() { | |
public void run() { | |
dialog = new IconAndMessageAndDetailsDialog(IStatus.ERROR, "Summary", | |
"Details"); | |
} | |
}); | |
} | |
@Test | |
public void testDialog() | |
{ | |
PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() { | |
public void run() { | |
dialog.setBlockOnOpen(false); | |
dialog.open(); | |
dialog.close(); | |
} | |
}); | |
} | |
} |