Пример #1
0
 /** @see Encounter#removeOrder(Order) */
 @Test
 @Verifies(
     value = "should not fail when removing non existent order",
     method = "removeOrder(Order)")
 public void removeOrder_shouldNotFailWhenRemovingNonExistentOrder() throws Exception {
   Encounter encounter = new Encounter();
   encounter.removeOrder(new Order(123));
 }
Пример #2
0
  /** @see Encounter#removeOrder(Order) */
  @Test
  @Verifies(value = "should remove order from encounter", method = "removeOrder(Order)")
  public void removeOrder_shouldRemoveOrderFromEncounter() throws Exception {
    Encounter encounter = new Encounter();
    Order order = new Order(1);
    encounter.addOrder(order);
    assertEquals(1, encounter.getOrders().size());

    encounter.removeOrder(order);
    assertEquals(0, encounter.getOrders().size());
  }
Пример #3
0
 /** @see Encounter#removeOrder(Order) */
 @Test
 @Verifies(value = "should not fail when removing null order", method = "removeOrder(Order)")
 public void removeOrder_shouldNotFailWhenRemovingNullOrder() throws Exception {
   Encounter encounter = new Encounter();
   encounter.removeOrder(null);
 }