CookDishTDD示例与数据库及用例演示
菜应用程序的TDD示例。编写一个类,在制作我想要的菜肴后获取可用的食材并返回剩余的食材。见src/test/resources/TruthTableCookIt.xlsx
POJOs类 Ingredients:
class Ingredients {
int cartQty;
int iceBergLettuceQty;
int chickenQty;
int beanQty;
}
class Status:
class Status {
tIngredients leftOverIngredients; // Ingredients passed in minus what was used. Or same what was passed in case too few ingredients
boolean success; // false if could not make, else true
}
班级可以做凯撒沙拉或俄罗斯沙拉。原料:
凯撒:2胡
下载地址
用户评论