@@ -0,0 +1,2646 @@
+package net.squanchy.schedule.domain.view;%0A%0Aimport java.util.Collections;%0Aimport java.util.List;%0A%0Aimport net.squanchy.eventdetails.domain.view.ExperienceLevel;%0Aimport net.squanchy.speaker.domain.view.Speaker;%0Aimport net.squanchy.support.lang.Optional;%0A%0Aimport org.joda.time.LocalDateTime;%0A%0Apublic final class EventFixtures %7B%0A%0A    private String eventId = %22banana%22;%0A    private long numericEventId = 1234;%0A    private String dayId = %22potato%22;%0A    private LocalDateTime startTime = new LocalDateTime(123456);%0A    private LocalDateTime endTime = new LocalDateTime(123666);%0A    private String title = %22Hello %5CuD83C%5CuDF4C%22;    // Yes, that's a banana emoji. You never know%0A    private String place = null;        // TODO this should be Optional%3CPlace%3E%0A    private Optional%3CExperienceLevel%3E experienceLevel = Optional.absent();%0A    private List%3CSpeaker%3E speakers = Collections.emptyList();%0A    private Event.Type type = Event.Type.OTHER;%0A%0A    public static EventFixtures anEvent() %7B%0A        return new EventFixtures();%0A    %7D%0A%0A    private EventFixtures() %7B%0A        // Not instantiable%0A    %7D%0A%0A    public EventFixtures withEventId(String eventId) %7B%0A        this.eventId = eventId;%0A        return this;%0A    %7D%0A%0A    public EventFixtures withNumericEventId(long numericEventId) %7B%0A        this.numericEventId = numericEventId;%0A        return this;%0A    %7D%0A%0A    public EventFixtures withDayId(String dayId) %7B%0A        this.dayId = dayId;%0A        return this;%0A    %7D%0A%0A    public EventFixtures withStartTime(LocalDateTime startTime) %7B%0A        this.startTime = startTime;%0A        return this;%0A    %7D%0A%0A    public EventFixtures withEndTime(LocalDateTime endTime) %7B%0A        this.endTime = endTime;%0A        return this;%0A    %7D%0A%0A    public EventFixtures withTitle(String title) %7B%0A        this.title = title;%0A        return this;%0A    %7D%0A%0A    public EventFixtures withPlace(String place) %7B%0A        this.place = place;%0A        return this;%0A    %7D%0A%0A    public EventFixtures withExperienceLevel(Optional%3CExperienceLevel%3E experienceLevel) %7B%0A        this.experienceLevel = experienceLevel;%0A        return this;%0A    %7D%0A%0A    public EventFixtures withSpeakers(List%3CSpeaker%3E speakers) %7B%0A        this.speakers = speakers;%0A        return this;%0A    %7D%0A%0A    public EventFixtures withType(Event.Type type) %7B%0A        this.type = type;%0A        return this;%0A    %7D%0A%0A    public Event build() %7B%0A        return Event.create(%0A                eventId,%0A                numericEventId,%0A                dayId,%0A                startTime,%0A                endTime,%0A                title,%0A                place,%0A                experienceLevel,%0A                speakers,%0A                type%0A        );%0A    %7D%0A%7D%0A

Create EventFixtures