9
9
import java .util .List ;
10
10
11
11
import org .bbop .golr .java .RetrieveGolrAnnotations .GolrAnnotationDocument ;
12
+ import org .junit .Ignore ;
12
13
import org .junit .Test ;
13
14
14
15
import owltools .gaf .Bioentity ;
@@ -19,7 +20,7 @@ public class RetrieveGolrAnnotationsTest {
19
20
20
21
@ Test
21
22
public void testGetGolrAnnotationsForGene () throws Exception {
22
- RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations ("http ://golr.berkeleybop .org" ){
23
+ RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations ("https ://golr.geneontology .org/solr " ){
23
24
24
25
@ Override
25
26
protected void logRequest (URI uri ) {
@@ -39,7 +40,7 @@ protected void logRequest(URI uri) {
39
40
40
41
@ Test
41
42
public void testGetGolrAnnotationsForGeneProduction () throws Exception {
42
- RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations ("http ://golr.geneontology.org/solr" );
43
+ RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations ("https ://golr.geneontology.org/solr" );
43
44
List <GolrAnnotationDocument > annotations = retriever .getGolrAnnotationsForGene ("MGI:MGI:97290" );
44
45
assertNotNull (annotations );
45
46
for (GolrAnnotationDocument document : annotations ) {
@@ -49,9 +50,10 @@ public void testGetGolrAnnotationsForGeneProduction() throws Exception {
49
50
assertTrue (annotations .size () > 10 );
50
51
}
51
52
53
+ @ Ignore
52
54
@ Test
53
55
public void testGetGolrAnnotationsForGeneWithQualifierProduction () throws Exception {
54
- RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations ("http ://golr.geneontology.org/solr" );
56
+ RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations ("https ://golr.geneontology.org/solr" );
55
57
List <GolrAnnotationDocument > annotations = retriever .getGolrAnnotationsForGene ("SGD:S000003676" );
56
58
assertNotNull (annotations );
57
59
int qualifierCounter = 0 ;
@@ -69,7 +71,7 @@ public void testGetGolrAnnotationsForGeneWithQualifierProduction() throws Except
69
71
70
72
@ Test
71
73
public void testGetGolrAnnotationsForGeneWithQualifier () throws Exception {
72
- RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations ("http ://toaster.lbl.gov:9000 /solr" );
74
+ RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations ("https ://golr.geneontology.org /solr" );
73
75
List <GolrAnnotationDocument > annotations = retriever .getGolrAnnotationsForGene ("UniProtKB:O95996" );
74
76
assertNotNull (annotations );
75
77
int qualifierCounter = 0 ;
@@ -97,7 +99,7 @@ public void testGetGolrAnnotationsForGeneWithQualifier() throws Exception {
97
99
98
100
@ Test
99
101
public void testGetGolrAnnotationsForGenesProduction () throws Exception {
100
- RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations ("http ://golr.geneontology.org/solr" ) {
102
+ RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations ("https ://golr.geneontology.org/solr" ) {
101
103
102
104
@ Override
103
105
protected void logRequest (URI uri ) {
@@ -117,7 +119,7 @@ protected void logRequest(URI uri) {
117
119
118
120
@ Test
119
121
public void testGetGolrAnnotationsForSynonym () throws Exception {
120
- RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations ("http ://golr.berkeleybop .org" ) {
122
+ RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations ("https ://golr.geneontology .org/solr " ) {
121
123
122
124
@ Override
123
125
protected void logRequest (URI uri ) {
@@ -136,7 +138,7 @@ protected void logRequest(URI uri) {
136
138
137
139
@ Test
138
140
public void testGetAnnotationsForGene () throws Exception {
139
- RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations ("http ://golr.berkeleybop .org" );
141
+ RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations ("https ://golr.geneontology .org/solr " );
140
142
List <GolrAnnotationDocument > golrDocuments = retriever .getGolrAnnotationsForGene ("MGI:MGI:97290" );
141
143
assertNotNull (golrDocuments );
142
144
GafDocument gafDocument = retriever .convert (golrDocuments );
0 commit comments