productAreaManager);
DeviationStatusManager deviationStatusManager = (DeviationStatusManager) ModelUtil
.getBean(DeviationStatusManager.MANAGER_NAME);
when(managerRepository.getDeviationStatusManager()).thenReturn(
deviationStatusManager);
ApplicationUserManager applicationUserManager = (ApplicationUserManager) ModelUtil
.getBean(ApplicationUserManager.MANAGER_NAME);
when(managerRepository.getApplicationUserManager()).thenReturn(
applicationUserManager);
TransportSumVManager transportSumVManager = (TransportSumVManager) ModelUtil
.getBean(TransportSumVManager.MANAGER_NAME);
when(managerRepository.getTransportSumVManager()).thenReturn(
transportSumVManager);
BudgetManager budgetManager = (BudgetManager) ModelUtil
.getBean(BudgetManager.MANAGER_NAME);
when(managerRepository.getBudgetManager()).thenReturn(budgetManager);
OrderManager orderManager = (OrderManager) ModelUtil
.getBean(OrderManager.MANAGER_NAME);
when(managerRepository.getOrderManager()).thenReturn(orderManager);
ArticleTypeManager articleTypeManager = (ArticleTypeManager) ModelUtil
.getBean(ArticleTypeManager.MANAGER_NAME);
when(managerRepository.getArticleTypeManager()).thenReturn(
articleTypeManager);
SupplierManager supplierManager = (SupplierManager) ModelUtil
.getBean(SupplierManager.MANAGER_NAME);
when(managerRepository.getSupplierManager())
.thenReturn(supplierManager);
TransportManager transportManager = (TransportManager) ModelUtil
.getBean(TransportManager.MANAGER_NAME);
when(managerRepository.getTransportManager()).thenReturn(
transportManager);
ColliManager colliManager = (ColliManager) ModelUtil
.getBean(ColliManager.MANAGER_NAME);
when(managerRepository.getColliManager()).thenReturn(colliManager);
DeviationManager deviationManager = (DeviationManager) ModelUtil
.getBean(DeviationManager.MANAGER_NAME);
when(managerRepository.getDeviationManager()).thenReturn(
deviationManager);
OrdlnManager ordlnManager = (OrdlnManager) ModelUtil
.getBean(OrdlnManager.MANAGER_NAME);
when(managerRepository.getOrdlnManager()).thenReturn(ordlnManager);
TakstolPackageVManager takstolPackageVManager = (TakstolPackageVManager) ModelUtil
.getBean(TakstolPackageVManager.MANAGER_NAME);
when(managerRepository.getTakstolPackageVManager()).thenReturn(
takstolPackageVManager);
TakstolProductionVManager takstolProductionVManager = (TakstolProductionVManager) ModelUtil
.getBean(TakstolProductionVManager.MANAGER_NAME);
when(managerRepository.getTakstolProductionVManager()).thenReturn(
takstolProductionVManager);
TakstolInfoVManager takstolInfoVManager = (TakstolInfoVManager) ModelUtil
.getBean(TakstolInfoVManager.MANAGER_NAME);
when(managerRepository.getTakstolInfoVManager()).thenReturn(
takstolInfoVManager);
ApplicationUser applicationUser = new ApplicationUser();
applicationUser.setUserName("admin");
applicationUser = applicationUserManager.findByObject(applicationUser)
.get(0);
ProductArea productArea = new ProductArea();
ProductAreaGroupManager productAreaGroupManager = (ProductAreaGroupManager) ModelUtil
.getBean(ProductAreaGroupManager.MANAGER_NAME);
ProductAreaGroup productAreaGroup = productAreaGroupManager