return new OrderViewHandler(login, managerRepository,
deviationOverviewViewFactory,
deviationViewHandlerFactory, notInitData);
}
};
final SupplierOrderViewHandler supplierOrderViewHandler = new SupplierOrderViewHandler(
login, managerRepository, assemblyReportFactory,
deviationViewHandlerFactory, orderViewHandlerFactory, supplier,
yearWeek);
Set<UserTypeAccess> userTypeAccesses = new HashSet<UserTypeAccess>();
UserTypeAccess userTypeAccess = new UserTypeAccess();
userTypeAccess.setWindowAccess(new WindowAccess(null, "Attributter",
null));
userTypeAccesses.add(userTypeAccess);
userType.setUserTypeAccesses(userTypeAccesses);
final List<Supplier> supplierList = new ArrayList<Supplier>();
supplierList.add(supplier);
final OrderViewHandler orderViewHandler = new OrderViewHandler(login,
managerRepository, deviationOverviewViewFactory,
deviationViewHandlerFactory, true);
SupplierOrderViewHandlerFactory supplierOrderViewHandlerFactory = new SupplierOrderViewHandlerFactory() {
public SupplierOrderViewHandler create(Supplier aSupplier,
YearWeek aYearWeek) {
return new SupplierOrderViewHandler(login, managerRepository,
assemblyReportFactory, deviationViewHandlerFactory,
orderViewHandlerFactory, supplier, yearWeek);
}
};
final AssemblyPlannerView view = new AssemblyPlannerView(