forked from nus-cs2113-AY2324S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Menu.java, Dish.java, Ingredient.java and their test classes
- Loading branch information
Showing
6 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package seedu.duke.data; | ||
|
||
import seedu.duke.data.dish.Dish; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class Menu { | ||
private ArrayList<Dish> menuItems; | ||
|
||
public Menu(ArrayList<Dish> menuItems) { | ||
this.menuItems = menuItems; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package seedu.duke.data.dish; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class Dish { | ||
private String name; | ||
private ArrayList<Ingredient> ingredients; | ||
private double price; | ||
|
||
public Dish(String name, ArrayList<Ingredient> ingredients, double price) { | ||
this.name = name; | ||
this.ingredients = ingredients; | ||
this.price = price; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package seedu.duke.data.dish; | ||
|
||
public class Ingredient { | ||
private final String name; | ||
|
||
public Ingredient(String name) { | ||
this.name = name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package seedu.duke.data; | ||
|
||
//import static org.junit.jupiter.api.Assertions.*; | ||
|
||
class MenuTest { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package seedu.duke.data.dish; | ||
|
||
//import static org.junit.jupiter.api.Assertions.*; | ||
|
||
class DishTest { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package seedu.duke.data.dish; | ||
|
||
//import static org.junit.jupiter.api.Assertions.*; | ||
|
||
class IngredientTest { | ||
|
||
} |