Skip to content

Commit 336dab4

Browse files
committed
Make sure we have data sources defined
1 parent dddd78f commit 336dab4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

org.bridgedb.bio/src/test/java/org/bridgedb/bio/DataSourceTxtTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import java.util.Set;
3434

3535
import org.bridgedb.DataSource;
36+
import org.junit.jupiter.api.BeforeAll;
3637

3738

3839
/**
@@ -41,6 +42,11 @@
4142
*/
4243
public class DataSourceTxtTest {
4344

45+
@BeforeAll
46+
public static void setUpSources() {
47+
if (DataSource.getDataSources().size() < 20) DataSourceTxt.init();
48+
}
49+
4450
@org.junit.jupiter.api.Test
4551
public void testUniqueSystemCodes() {
4652
Set<String> codes = new HashSet<String>();

0 commit comments

Comments
 (0)