package uk.ac.ebi.spot.goci.curation.builder;

import uk.ac.ebi.spot.goci.model.DeletedStudy;

/**
 * Created by emma on 31/05/2016.
 *
 * @author emma
 *         <p>
 *         Deleted study builder used in testing
 */
public class DeletedStudyBuilder {

    private DeletedStudy deletedStudy = new DeletedStudy();

    public DeletedStudyBuilder setId(Long id) {
        deletedStudy.setId(id);
        return this;
    }

    public DeletedStudyBuilder setTitle(String title) {
        deletedStudy.setTitle(title);
        return this;
    }

    public DeletedStudyBuilder setPubmedId(String pubmedId) {
        deletedStudy.setPubmedId(pubmedId);
        return this;
    }

    public DeletedStudy build() {
        return deletedStudy;
    }
}
@@ -86,16 +86,86 @@
 edStudy;
+%0Aimport uk.ac.ebi.spot.goci.model.Event;%0A%0Aimport java.util.Collection;
 %0A%0A/**%0A *
@@ -736,32 +736,169 @@
 rn this;%0A    %7D%0A%0A
+    public DeletedStudyBuilder setEvents(Collection%3CEvent%3E events) %7B%0A        deletedStudy.setEvents(events);%0A        return this;%0A    %7D%0A%0A
     public Delet

Add event variable