Permalink
Browse files

red

  • Loading branch information...
irof committed Mar 5, 2018
1 parent 40b7e59 commit 333ac2d13ead6f0bdb508b121d92a399af825667
@@ -1,9 +1,13 @@
package application;
import domain.Task;
import domain.Tasks;
public class TodoService {
public Tasks tasks() {
return new Tasks();
}
public void add(Task task) {
}
}
@@ -2,8 +2,13 @@
public class Task {
TaskName name;
private final TaskName taskName;
Status status;
public Task(TaskName taskName) {
this.taskName = taskName;
}
}
@@ -1,4 +1,8 @@
package domain;
public class Tasks {
public String asText() {
return "";
}
}
@@ -1,5 +1,7 @@
package application;
import domain.Task;
import domain.TaskName;
import domain.Tasks;
import org.junit.jupiter.api.Test;
@@ -10,7 +12,12 @@
@Test
void やることがとれる() {
TodoService sut = new TodoService();
Task task = new Task(new TaskName("yarukoto"));
sut.add(task);
Tasks actual = sut.tasks();
assertThat(actual).isNotNull();
assertThat(actual.asText())
.contains("yarukoto");
}
}

0 comments on commit 333ac2d

Please sign in to comment.