Package com.expositds.ars.domain.order

Examples of com.expositds.ars.domain.order.Order.changeStatus()


        Subsidiary.class);

    log.info("Creating new order and setting NEW status for it.");
    Order order = new Order("Do something", car, customer, subsidiary);
    try {
      order.changeStatus(EOrderStatus.NEW);
    } catch (InvalidOrderStatusSequenceException e) {
      e.printStackTrace();
    } catch (UnknownOrderStatusException e) {
      e.printStackTrace();
    } catch (NoneActivitiesException e) {
View Full Code Here


    log.info("Result: " + result.iterator().next());

    log.info("Changing status to IN_PROGRESS.");
    order = DozerHelper.map(orderEntity, Order.class);
    try {
      order.changeStatus(EOrderStatus.IN_PROGRESS);
    } catch (InvalidOrderStatusSequenceException e) {
      e.printStackTrace();
    } catch (UnknownOrderStatusException e) {
      e.printStackTrace();
    } catch (NoneActivitiesException e) {
View Full Code Here

    log.info("Result: " + result);

    log.info("Changing status to AWAITING_PAYMENT.");
    order = DozerHelper.map(orderEntity, Order.class);
    try {
      order.changeStatus(EOrderStatus.AWAITING_PAYMENT);
    } catch (InvalidOrderStatusSequenceException e) {
      e.printStackTrace();
    } catch (UnknownOrderStatusException e) {
      e.printStackTrace();
    } catch (NoneActivitiesException e) {
View Full Code Here

    log.info("Changing status to COMPLETED.");
    order = DozerHelper.map(orderEntity, Order.class);
    order.getPayment().makePayment(new TestPaymentSystem());
    try {
      order.changeStatus(EOrderStatus.COMPLETED);
    } catch (InvalidOrderStatusSequenceException e) {
      e.printStackTrace();
    } catch (UnknownOrderStatusException e) {
      e.printStackTrace();
    } catch (NoneActivitiesException e) {
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.