Package com.expositds.ars.domain.billing

Examples of com.expositds.ars.domain.billing.Subsidiary


    subsidiaryService.deleteSubsidiaryById((long) 1);
  }

  @Test
  public void updateSubsidiaryServiceTest() {
    Subsidiary subsidiary = subsidiaryService.getSubsidiaryById((long) 1);
    subsidiary.setCity("cccv");
    subsidiary = subsidiaryService.updateSubsidiary(subsidiary);
    log.info(subsidiary);
  }
View Full Code Here


  }


  @Test
  public void getEmployeesByPosition() {
    Subsidiary subsidiary = subsidiaryService.getSubsidiaryById(new Long(1));
   
    List<Employee> employee = employeeService.getEmployeesByPosition(subsidiary, "", 1);
    log.info(employee);
  }
View Full Code Here

    log.info(employee);
  }

  @Test
  public void getEmployeesBySalaryTest() {
    Subsidiary subsidiary = subsidiaryService.getSubsidiaryById(new Long(1));
   
    List<Employee> employee = employeeService.getEmployeesBySalary(subsidiary, 1f, 100f, 1);
    log.info(employee);
  }
View Full Code Here

    log.info(subsidiary);
  }

  @Test
  public void addSubsidiaryServiceTest() {
    Subsidiary subsidiary = new Subsidiary();
    subsidiary.setCity("city");
    subsidiary.setCountry("df");

    List<Detail> details = (List<Detail>) detailService.getDetailById((long) 1);
    subsidiary.setDetails(details);
    subsidiary.setEmail("2@2.r");

    Employee employee = employeeService.getEmployeeById((long) 1);
    subsidiary.setEmployees((List<Employee>) employee);

    subsidiary.setHouse((short) 3);
    subsidiary.setHousing((short) 1);
    subsidiary.setName("fd");
    subsidiary.setPhone("23-32-32");
    subsidiary.setProvince("f");
    subsidiary.setRentPrice(434);
    subsidiary.setStreet("fd");

    Long id = subsidiaryService.addSubsidiary(subsidiary);
    log.info(subsidiary);

  }
View Full Code Here

    log.info(employee);
  }

  @Test
  public void getEmployeesBySubsidiaryTest() {
    Subsidiary subsidiary = subsidiaryService.getSubsidiaryById(new Long(1));
   
    List<Employee> employee = employeeService.getEmployeesBySubsidiary(subsidiary, 1);
    log.info(employee);
  }
View Full Code Here

    Customer customer = DozerHelper.mapAbstract(customerEntity);

    log.info("Getting subsidiary entity and mapping subsidiary model.");
    List<SubsidiaryEntity> subsidiaryEntity = null;
    subsidiaryEntity = subsidiaryRepository.findByName("ARS Grodno");
    Subsidiary subsidiary = DozerHelper.map(subsidiaryEntity,
        Subsidiary.class);

    log.info("Creating new order and setting NEW status for it.");
    Order order = new Order("Do something", car, customer, subsidiary);
    try {
View Full Code Here

 
  @Test
  public void addOrderTest() {
    Car car = carServise.getCarById(new Long(1));
    Customer customer = customerService.getCustomerById(new Long(7));
    Subsidiary subsidiary = subsidiaryService.getSubsidiaryById(new Long(1));
    Order order = new Order("��������", car, customer, subsidiary);
    order.setCreationDate(new Date());
    order.setStatus(EOrderStatus.NEW);
   
    Long id = orderService.addOrder(order);
View Full Code Here

    log.info(order);
  }

  @Test
  public void getOrdersBySubsidiaryTest() {
    Subsidiary subsidiary = subsidiaryService.getSubsidiaryById(new Long(2));
    List<Order> order = orderService.getOrdersBySubsidiary(subsidiary, EOrderStatus.NEW, 1);
   
    log.info(order);
  }
View Full Code Here

    log.info(i);
  }

  @Test
  public void getMechanicsBySubsidiaryTest() {
    Subsidiary subsidiary = subsidiaryService.getSubsidiaryById(new Long(1));
    List<Mechanic> mechanic = mechanicService.getMechanicsBySubsidiary(subsidiary, 1);
   
    log.info(mechanic);
  }
View Full Code Here

TOP

Related Classes of com.expositds.ars.domain.billing.Subsidiary

Copyright © 2018 www.massapicom. 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.