diff --git a/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java b/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java index 72f42f0..4b4014a 100644 --- a/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java +++ b/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java @@ -6,6 +6,7 @@ import org.springframework.stereotype.Repository; import java.util.Calendar; +import java.util.Collections; import java.util.HashMap; @@ -36,8 +37,8 @@ this.bookManager.addListener(this); String[][] accounts = {{"fish", "abc", "def"}, {"bird", "abc", "xyz"}}; 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"); + createTodo(accounts[0][0], 1, c.get(Calendar.YEAR), c.get(Calendar.MONTH) + 1, c.get(Calendar.DATE), "ダミーtodo1"); + createTodo(accounts[1][0], 1, c.get(Calendar.YEAR), c.get(Calendar.MONTH) + 1, c.get(Calendar.DATE), "ダミーtodo2"); }