@Test public void transportModeIsNull() { Order order = new Order(); order.setContactCity("深圳"); orderManager.assertNotPilotPackageOrder( order, OrderExceptionType.BOOKVIHICE_ENDDEPT_CONNOTNULL); }
@Test(expected = GeneralException.class) public void isPilotPackageOrder() { Order order = new Order(); order.setContactCity("上海"); order.setTransportMode(Constant.ORDER_TRANSTYPE_AGENT_PACKAGE); orderManager.assertNotPilotPackageOrder( order, OrderExceptionType.BOOKVIHICE_ENDDEPT_CONNOTNULL); }
@Test public void transportModeIsNot() { Order order = new Order(); order.setContactCity("上海"); order.setTransportMode(Constant.ORDER_TRANSTYPE_AGENT_VEHICLE); orderManager.assertNotPilotPackageOrder( order, OrderExceptionType.BOOKVIHICE_ENDDEPT_CONNOTNULL); }