diff --git a/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java b/src/main/java/org/ntlab/citrusserver/repositories/TodoManager.java index 72f42f0..ef78273 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,7 +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"); + System.out.println(c.get(1) + ", " + c.get(2) + ", " + c.get(5)); + 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), c.get(Calendar.DATE), "ダミーtodo2"); }