daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## AbstractOrderMakerTest.class
  2.  
  3. public abstract class AbstractOrderMakerTest {
  4.     // skipped some implementation details
  5.  
  6.     @Test
  7.     public void testSimpleOrder() {
  8.         List<Item> wantedItems = simpleMenu.getItems("至尊漢堡");        
  9.         List<Item> expectedItems = simpleMenu.getItems("至尊漢堡");
  10.         baseOrderTest(wantedItems, expectedItems);
  11.     }
  12.    
  13.     @Test
  14.     public void testOrderWithMeal() {
  15.         List<Item> wantedItems = simpleMenu.getItems("雙層芝士孖堡", "中薯條", "中可樂");
  16.         List<Item> expectedItems = simpleMenu.getItems("雙層芝士孖堡套餐");
  17.         baseOrderTest(wantedItems, expectedItems);
  18.     }
  19.    
  20.     @Test
  21.     public void testChooseCheapMeal() {
  22.         List<Item> wantedItems = simpleMenu.getItems("雙層芝士孖堡", "至尊漢堡", "中薯條", "中可樂");
  23.         List<Item> expectedItems = simpleMenu.getItems("雙層芝士孖堡", "至尊漢堡套餐");
  24.         baseOrderTest(wantedItems, expectedItems);
  25.     }
  26.  
  27.     /**
  28.      * return your implementation of OrderMaker here
  29.      * @return
  30.      */
  31.     public abstract OrderMaker getOrderMaker();
  32.  
  33.     // skipped some implementation details
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top