Skip to content

Commit e0efa45

Browse files
committed
Ignore AnnotatorClientTest if ncbo.api.key is not set
1 parent d078cfc commit e0efa45

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/ubic/basecode/ontology/ncbo/AnnotatorClientTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,20 @@
2020

2121
import java.util.Collection;
2222

23+
import org.junit.Assume;
24+
import org.junit.Before;
2325
import org.junit.Test;
2426

2527
/**
2628
* @author Paul
2729
*/
2830
public class AnnotatorClientTest {
2931

32+
@Before
33+
public void setUp() {
34+
Assume.assumeTrue( "", System.getProperty( "ncbo.api.key" ) != null );
35+
}
36+
3037
@Test
3138
public void test() throws Exception {
3239
Collection<AnnotatorResponse> results = AnnotatorClient.findTerm( "cancer" );

0 commit comments

Comments
 (0)