diff --git a/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java b/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java index 7421407..72f42f0 100644 --- a/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java +++ b/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java @@ -5,6 +5,7 @@ import org.ntlab.citrusserver.entities.Todo; import org.springframework.stereotype.Repository; +import java.util.Calendar; import java.util.HashMap; @@ -34,8 +35,9 @@ accountManager.addListener(this); this.bookManager.addListener(this); String[][] accounts = {{"fish", "abc", "def"}, {"bird", "abc", "xyz"}}; - createTodo(accounts[0][0], 1, 2024, 5, 28, "ダミーtodo1"); - createTodo(accounts[1][0], 1, 2024, 5, 28, "ダミーtodo2"); + Calendar c = Calendar.getInstance(); + createTodo(accounts[0][0], 1, c.get(Calendar.YEAR), c.get(Calendar.MONTH), c.get(Calendar.DATE), "ダミーtodo1"); + createTodo(accounts[1][0], 1, c.get(Calendar.YEAR), c.get(Calendar.MONTH), c.get(Calendar.DATE), "ダミーtodo2"); }