fix some bugs
This commit is contained in:
parent
c88037c1a3
commit
ba09c9e1bd
|
@ -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());
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue