package uk.ac.ebi.quickgo.geneproduct.common.common;

import uk.ac.ebi.quickgo.geneproduct.common.document.GeneProductDocument;

import java.util.Arrays;
import java.util.Collections;

/**
 * Class to create mocked objects of type {@link GeneProductDocument}.
 */
public final class GeneProductDocMocker {
    private GeneProductDocMocker() {}

    public static GeneProductDocument createDocWithId(String id) {
        GeneProductDocument doc = new GeneProductDocument();
        doc.id = id;
        doc.type = "protein";
        doc.taxonId = 35758;
        doc.symbol = "Streptomyces ghanaensis - symbol";
        doc.parentId = "UniProtKB:OK0206";
        doc.database = "UniProt";
        doc.databaseSubsets = Arrays.asList("RRR","QQQ");
        doc.isAnnotated = true;
        doc.isIsoform = true;
        doc.isCompleteProteome = true;
        doc.name = "moeA5";
        doc.referenceProteome = "AAAA";
        doc.synonyms = Collections.singletonList("3SSW23");
        return doc;
    }
}

@@ -546,16 +546,67 @@
  35758;%0A
+        doc.taxonName = %22Streptomyces ghanaensis%22;%0A
         

Add taxon name example to gene product stub.