@Test
@DisplayName("set all the optional fields")
void thirdCase() {
final TaskCreationId pid = newPid();
final TaskId taskId = newTaskId();
testEnv.createDraft(pid, taskId);
final String description = "thirdCase";
final TaskPriority priority = LOW;
final Timestamp dueDate = add(getCurrentTime(), fromSeconds(100));
testEnv.setDetails(pid, description, priority, dueDate);
final String labelTitle = "thirdCase-label";
final LabelId labelId = testEnv.createNewLabel(labelTitle);
testEnv.addLabel(pid, labelId);
testEnv.complete(pid);
final Task task = testEnv.taskById(taskId);
assertEquals(description, task.getDescription().getValue());
assertEquals(priority, task.getPriority());
assertAssignedLabel(taskId, labelTitle, GRAY);
}
TaskCreationWizardTest.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:todo-list
作者:
评论列表
文章目录