@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()); }
@Test(expected = IllegalArgumentException.class) public void testExecuteNullOrder() throws RetryLaterException, Exception { prepareOrderForManualCheck.executeAction(new OrderProcessModel()); }