managerRepository, deviationOverviewViewFactory,
deviationViewHandlerFactory, true);
when(orderViewHandlerFactory.create(anyBoolean())).thenReturn(
orderViewHandler);
final MenuBarBuilderInterface menuBarBuilder = new MenuBarBuilderImpl(
login);
final GarageMenu garageMenu = new GarageMenu(login);
OrderAction orderAction = new OrderAction(menuBarBuilder,
orderViewHandlerFactory);
garageMenu.setOrderAction(orderAction);
menuBarBuilder.setGarageMenu(garageMenu);
ProductionMenu productionMenu = new ProductionMenu(login);
GavlProductionWindow gavlProductionWindow = new GavlProductionWindow(
login, managerRepository, deviationViewHandlerFactory, null);
GavlProductionAction gavlProductionAction = new GavlProductionAction(
menuBarBuilder, gavlProductionWindow);
productionMenu.setGavlProductionAction(gavlProductionAction);
menuBarBuilder.setProductionMenu(productionMenu);
ProTransMain proTransMain = GuiActionRunner
.execute(new GuiQuery<ProTransMain>() {
protected ProTransMain executeInEDT() {
ProTransMain proTransMain = new ProTransMain(