.thenReturn(supplierManager);
SupplierViewHandler supplierViewHandler = new SupplierViewHandler(
login, managerRepository);
final EditSupplierView editSupplierView = new EditSupplierView(false,
new Supplier(), supplierViewHandler);
JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
protected JDialog executeInEDT() {
JDialog dialog = new JDialog();
WindowInterface window = new JDialogAdapter(dialog);
dialog.add(editSupplierView.buildPanel(window));
dialog.pack();
return dialog;
}
});
dialogFixture = new DialogFixture(dialog);