RetrieveGolrOntologyClass extends AbstractRetrieveGolr { public List<GolrOntologyClassDocument> getGolrOntologyCls(String id) throws IOException { List<String[]> tagvalues = new ArrayList<String[]>(); String [] tagvalue = new String[2]; tagvalue[0] = "annotation_class"; tagvalue[1] = id; tagvalues.add(tagvalue); final List<GolrOntologyClassDocument> documents = getGolrOntologyCls(tagvalues); return documents; } RetrieveGolrOntologyClass(String server, int retryCount); List<GolrOntologyClassDocument> getGolrOntologyCls(String id); List<GolrOntologyClassDocument> getGolrOntologyCls(List<String []> tagvalues);  }
@Test public void testGet() throws Exception { RetrieveGolrOntologyClass golr = new RetrieveGolrOntologyClass("http: @Override protected void logRequest(URI uri) { System.out.println(uri); } }; List<GolrOntologyClassDocument> entities = golr.getGolrOntologyCls("PO:0001040"); assertEquals(1, entities.size()); }
@Test public void testGetProduction() throws Exception { RetrieveGolrOntologyClass golr = new RetrieveGolrOntologyClass("http: @Override protected void logRequest(URI uri) { System.out.println(uri); } }; List<GolrOntologyClassDocument> entities = golr.getGolrOntologyCls("PO:0001040"); assertEquals(1, entities.size()); }
@Test public void testGetGolrBioentitesNoctua() throws Exception { RetrieveGolrOntologyClass golr = new RetrieveGolrOntologyClass("http: @Override protected void logRequest(URI uri) { System.out.println(uri); } }; List<GolrOntologyClassDocument> entities = golr.getGolrOntologyCls("WB:WBGene00001674"); assertEquals(1, entities.size()); }