@@ -0,0 +1,2670 @@
+package uk.ac.ebi.quickgo.annotation.model;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.CoreMatchers.equalTo;%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static uk.ac.ebi.quickgo.annotation.model.AnnotationMocker.*;%0A%0A/**%0A * @author Tony Wardell%0A * Date: 19/01/2017%0A * Time: 14:19%0A * Created with IntelliJ IDEA.%0A */%0Apublic class GAFAnnotationTest %7B%0A%0A    private static final int COL_DB = 0;%0A    private static final int COL_DB_OBJECT_ID = 1;%0A    private static final int COL_DB_OBJECT_SYMBOL = 2;%0A    private static final int COL_QUALIFIER = 3;%0A    private static final int COL_GO_ID = 4;%0A    private static final int COL_REFERENCE = 5;%0A    private static final int COL_EVIDENCE = 6;%0A    private static final int COL_WITH = 7;%0A    private static final int COL_ASPECT = 8;%0A    private static final int COL_DB_OBJECT_NAME = 9;%0A    private static final int COL_DB_OBJECT_SYNONYM = 10;%0A    private static final int COL_DB_OBJECT_TYPE = 11;%0A    private static final int COL_TAXON = 12;%0A    private static final int COL_DATE = 13;%0A    private static final int COL_ASSIGNED_BY = 14;%0A    private static final int COL_ANNOTATION_EXTENSION = 15;%0A    private static final int COL_GENE_PRODUCT = 16;%0A%0A    private Annotation annotation;%0A%0A    @Before%0A    public void setup()%7B%0A        annotation = AnnotationMocker.createValidAnnotation();%0A    %7D%0A%0A%0A    @Test%0A    public void createGAFStringFromAnnotationModel()%7B%0A%0A        String converted = AnnotationToGAF.convert(annotation);%0A%0A        String%5B%5D elements = converted.split(%22%5Ct%22);%0A        assertThat(elements%5BCOL_DB%5D, is(DB));%0A        assertThat(elements%5BCOL_DB_OBJECT_ID%5D, is(ID));%0A        assertThat(elements%5BCOL_DB_OBJECT_SYMBOL%5D, is(SYMBOL));%0A        assertThat(elements%5BCOL_QUALIFIER%5D, is(QUALIFIER));%0A        assertThat(elements%5BCOL_GO_ID%5D, is(GO_ID));%0A        assertThat(elements%5BCOL_REFERENCE%5D, is(REFERENCE));%0A        assertThat(elements%5BCOL_EVIDENCE%5D, is(EVIDENCE_CODE));%0A        assertThat(elements%5BCOL_WITH%5D, equalTo(WITH_FROM_AS_STRING));%0A        assertThat(elements%5BCOL_ASPECT%5D, is(%22F%22));%0A        assertThat(elements%5BCOL_DB_OBJECT_NAME%5D, is(%22%22));        //name%0A        assertThat(elements%5BCOL_DB_OBJECT_SYNONYM%5D, is(%22%22));       //synonym%0A        assertThat(elements%5BCOL_DB_OBJECT_TYPE%5D, is(PROTEIN_TYPE));%0A        assertThat(elements%5BCOL_TAXON%5D, is(%22taxon:%22+TAXON_ID));%0A        assertThat(elements%5BCOL_DATE%5D, equalTo(DATE_AS_STRING));%0A        assertThat(elements%5BCOL_ASSIGNED_BY%5D, equalTo(%22IntAct%22));%0A        assertThat(elements%5BCOL_ANNOTATION_EXTENSION%5D, is(DB));%0A        assertThat(elements%5BCOL_GENE_PRODUCT%5D, is(%22%22));%0A    %7D%0A%0A%0A%7D%0A

Add gene product type to Annotation.