fix some bugs

This commit is contained in:
hlq07 2018-05-12 14:47:16 +08:00
parent c88037c1a3
commit ba09c9e1bd
2 changed files with 3 additions and 7 deletions

View File

@ -65,9 +65,9 @@ public class ShowTodoItemDetailStrategy {
builder.append('\n').append("title: ").append(item.getTitle());
}
builder.append("\nfrom:\t")
builder.append("\nfrom: ")
.append(CalendarUtil.toString(item.getBgn()))
.append("\nto:\t")
.append("\nto: ")
.append(CalendarUtil.toString(item.getEnd()));
builder.append("\ntype: ");
@ -90,11 +90,6 @@ public class ShowTodoItemDetailStrategy {
}
}
if (item.getTitle() != null) {
builder.append("\ntitle: ")
.append(item.getTitle());
}
if (item.getLocation() != null) {
builder.append("\nlocation: ")
.append(item.getLocation());

View File

@ -39,6 +39,7 @@ public class ShowTodoItemDetailStrategyTest extends Application {
TodoItemFactory factory = new TodoItemFactory();
factory.title("test title");
factory.wholeDay(Calendar.getInstance());
factory.personnel("lyq");
TodoItem item = factory.build();
manager.add(item);