Examples of findByName()


Examples of no.ugland.utransprod.service.ConstructionTypeManager.findByName()

  @After
  public void tearDown() throws Exception {
    dialogFixture.cleanUp();
    ConstructionTypeManager constructionTypeManager = (ConstructionTypeManager) ModelUtil
        .getBean("constructionTypeManager");
    ConstructionType constructionType = constructionTypeManager
        .findByName("test");
    if (constructionType != null) {
      constructionTypeManager.removeConstructionType(constructionType);
    }
  }
View Full Code Here

Examples of no.ugland.utransprod.service.ConstructionTypeManager.findByName()

    order.setPostalCode("1234");
    order.setPostOffice("postOffice");
    order.setOrderDate(Calendar.getInstance().getTime());
    Customer customer = customerManager.findByCustomerNr(1);
    order.setCustomer(customer);
    ConstructionType constructionType = constructionTypeManager
        .findByName("A1");
    order.setConstructionType(constructionType);
    productArea = productAreaManager.findByName("Garasje villa");
    order.setProductArea(productArea);
    orderManager.saveOrder(order);
View Full Code Here

Examples of no.ugland.utransprod.service.ConstructionTypeManager.findByName()

  @After
  public void tearDown() throws Exception {
    ConstructionTypeManager constructionTypeManager = (ConstructionTypeManager) ModelUtil
        .getBean("constructionTypeManager");
    ConstructionType constructionType = constructionTypeManager
        .findByName("test");
    if (constructionType != null) {
      constructionTypeManager.removeConstructionType(constructionType);
    }
    dialogFixture.cleanUp();
View Full Code Here

Examples of no.ugland.utransprod.service.CostTypeManager.findByName()

    CostTypeManager costTypeManager = (CostTypeManager) ModelUtil
        .getBean(CostTypeManager.MANAGER_NAME);

    bind(CostType.class).annotatedWith(Names.named("kostnadTypeTakstoler"))
        .toInstance(costTypeManager.findByName("Takstoler"));

    CostUnitManager costUnitManager = (CostUnitManager) ModelUtil
        .getBean(CostUnitManager.MANAGER_NAME);

    bind(CostUnit.class)
View Full Code Here

Examples of no.ugland.utransprod.service.CostUnitManager.findByName()

    CostUnitManager costUnitManager = (CostUnitManager) ModelUtil
        .getBean(CostUnitManager.MANAGER_NAME);

    bind(CostUnit.class)
        .annotatedWith(Names.named("kostnadEnhetTakstoler"))
        .toInstance(costUnitManager.findByName("Intern"));

    bind(TransportCostManager.class).toInstance(
        (TransportCostManager) ModelUtil
            .getBean(TransportCostManager.MANAGER_NAME));
View Full Code Here

Examples of no.ugland.utransprod.service.ProductAreaGroupManager.findByName()

        frontArticleName, attributeName, attributeValue));
    final ApplicationUser applicationUser = new ApplicationUser();
    ProductArea productArea = new ProductArea();
    ProductAreaGroupManager productAreaGroupManager = (ProductAreaGroupManager) ModelUtil
        .getBean(ProductAreaGroupManager.MANAGER_NAME);
    ProductAreaGroup productAreaGroup = productAreaGroupManager
        .findByName("Garasje");
    productArea.setProductAreaGroup(productAreaGroup);
    applicationUser.setProductArea(productArea);
    applicationUser.setUserName("username");
    applicationUser.setGroupUser("Nei");
View Full Code Here

Examples of no.ugland.utransprod.service.ProductAreaGroupManager.findByName()

   
    final ProductArea productArea = productAreaManager
        .findByName("Garasje villa");
    ProductAreaGroupManager productAreaGroupManager = (ProductAreaGroupManager) ModelUtil
        .getBean(ProductAreaGroupManager.MANAGER_NAME);
    ProductAreaGroup productAreaGroup = productAreaGroupManager
        .findByName("Garasje");
    productArea.setProductAreaGroup(productAreaGroup);
    applicationUser.setProductArea(productArea);
    applicationUser.setUserName("username");
    applicationUser.setGroupUser("Nei");
View Full Code Here

Examples of no.ugland.utransprod.service.ProductAreaGroupManager.findByName()

    final ApplicationUser applicationUser = new ApplicationUser();
    final ProductArea productArea = productAreaManager
        .findByName("Garasje villa");
    ProductAreaGroupManager productAreaGroupManager = (ProductAreaGroupManager) ModelUtil
        .getBean(ProductAreaGroupManager.MANAGER_NAME);
    ProductAreaGroup productAreaGroup = productAreaGroupManager
        .findByName("Garasje");
    productArea.setProductAreaGroup(productAreaGroup);
    applicationUser.setProductArea(productArea);
    applicationUser.setUserName("username");
    applicationUser.setGroupUser("Nei");
View Full Code Here

Examples of no.ugland.utransprod.service.ProductAreaGroupManager.findByName()

    applicationUser = applicationUserManager.findByObject(applicationUser)
        .get(0);
    ProductArea productArea = new ProductArea();
    ProductAreaGroupManager productAreaGroupManager = (ProductAreaGroupManager) ModelUtil
        .getBean(ProductAreaGroupManager.MANAGER_NAME);
    ProductAreaGroup productAreaGroup = productAreaGroupManager
        .findByName("Garasje");
    productArea.setProductAreaGroup(productAreaGroup);
    applicationUser.setProductArea(productArea);
    when(login.getApplicationUser()).thenReturn(applicationUser);
View Full Code Here

Examples of no.ugland.utransprod.service.ProductAreaGroupManager.findByName()

        .getBean(OrderManager.MANAGER_NAME);
    when(managerRepository.getOrderManager()).thenReturn(orderManager);

    ProductArea productArea = new ProductArea();

    ProductAreaGroup productAreaGroup = productAreaGroupManager
        .findByName("Garasje");
    productArea.setProductAreaGroup(productAreaGroup);
    applicationUser.setProductArea(productArea);

    final DeviationManager deviationManager = (DeviationManager) ModelUtil
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.