public void setUp() throws Exception {
ExcelReportViewHandlerDeviation excelReportViewHandler = new ExcelReportViewHandlerDeviation(
"Avvik", true, ExcelReportEnum.DEVIATION_SUM);
final ExcelReportView excelReportView = new ExcelReportView(
excelReportViewHandler, false);
JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
protected JDialog executeInEDT() {
JDialog dialog = new JDialog();
WindowInterface window = new JDialogAdapter(dialog);
dialog.add(excelReportView.buildPanel(window));
dialog.pack();
return dialog;
}
});
dialogFixture = new DialogFixture(dialog);