@Before
public void setUp() throws Exception {
FailOnThreadViolationRepaintManager.install();
SystemSetupViewHandler viewHandler = new SystemSetupViewHandler();
final SystemSetupView systemSetupView = new SystemSetupView(viewHandler);
JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
protected JDialog executeInEDT() {
JDialog dialog = new JDialog();
WindowInterface window = new JDialogAdapter(dialog);
dialog.add(systemSetupView.buildPanel(window));
dialog.pack();
return dialog;
}
});
dialogFixture = new DialogFixture(dialog);