1. 首页
  2. 考试认证
  3. 其它
  4. CookDishTDD示例与数据库及用例演示

CookDishTDD示例与数据库及用例演示

上传者: 2024-12-22 04:03:42上传 ZIP文件 30.51KB 热度 20次

菜应用程序的TDD示例。编写一个类,在制作我想要的菜肴后获取可用的食材并返回剩余的食材。见src/test/resources/TruthTableCookIt.xlsx

POJOsIngredients


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胡

下载地址
用户评论