@Test public void build_titleIsSet_shouldCreateNewObjectAndSetTitle() { Todo created = Todo.getBuilder(TITLE).build(); assertThatTodo(created) .hasNoDescription() .hasNoId() .hasTitle(TITLE) .creationTimeIsNotSet() .modificationTimeIsNotSet(); }
public static Builder getBuilder(String title) { return new Builder(title); }
Todo { public static Builder getBuilder(String title) { return new Builder(title); } }
Todo { public static Builder getBuilder(String title) { return new Builder(title); } private  Todo(Builder builder); }
Todo { public static Builder getBuilder(String title) { return new Builder(title); } private  Todo(Builder builder); static Builder getBuilder(String title); Long getId(); LocalDateTime getCreationTime(); String getDescription(); LocalDateTime getModificationTime(); String getTitle(); @Override String toString(); }
Todo { public static Builder getBuilder(String title) { return new Builder(title); } private  Todo(Builder builder); static Builder getBuilder(String title); Long getId(); LocalDateTime getCreationTime(); String getDescription(); LocalDateTime getModificationTime(); String getTitle(); @Override String toString();  }