コード例 #1
0
  @Test
  public void testExecute() throws RetryLaterException, Exception {

    final OrderProcessModel orderProcess = new OrderProcessModel();
    final OrderModel order = new OrderModel();
    order.setStatus(OrderStatus.CREATED);
    orderProcess.setOrder(order);
    prepareOrderForManualCheck.executeAction(orderProcess);
    Assert.assertEquals(OrderStatus.WAIT_FRAUD_MANUAL_CHECK, orderProcess.getOrder().getStatus());
  }
コード例 #2
0
  @Test(expected = IllegalArgumentException.class)
  public void testExecuteNullOrder() throws RetryLaterException, Exception {

    prepareOrderForManualCheck.executeAction(new OrderProcessModel());
  }