Skip to content

Commit

Permalink
client: use JUnit 5, #TASK-6020, #TASK-5789
Browse files Browse the repository at this point in the history
  • Loading branch information
jtarraga committed Apr 12, 2024
1 parent 4cf6541 commit 377c0b7
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@

import org.apache.avro.specific.SpecificRecordBase;
import org.apache.commons.collections4.CollectionUtils;
import org.junit.Assert;
import org.junit.Assume;
import org.junit.Test;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ArgumentsSource;
Expand All @@ -36,7 +35,6 @@
import org.opencb.commons.datastore.core.Query;
import org.opencb.commons.datastore.core.QueryOptions;

import javax.ws.rs.QueryParam;
import java.util.*;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -149,7 +147,7 @@ public void getAllConsequenceTypes(CellBaseClient cellBaseClient) throws Excepti

@Test
public void testSearchSnpBydbSnpId() throws Exception {
Assume.assumeTrue(GitRepositoryState.get().getBranch().equals("TASK-5789"));
Assumptions.assumeTrue(GitRepositoryState.get().getBranch().equals("TASK-5789"));

ClientConfiguration clientConfiguration = new ClientConfiguration()
.setDefaultSpecies("hsapiens")
Expand All @@ -170,7 +168,7 @@ public void testSearchSnpBydbSnpId() throws Exception {

@Test
public void testSearchSnpByPosition() throws Exception {
Assume.assumeTrue(GitRepositoryState.get().getBranch().equals("TASK-5789"));
Assumptions.assumeTrue(GitRepositoryState.get().getBranch().equals("TASK-5789"));

ClientConfiguration clientConfiguration = new ClientConfiguration()
.setDefaultSpecies("hsapiens")
Expand All @@ -196,7 +194,7 @@ public void testSearchSnpByPosition() throws Exception {

@Test
public void testStarsWithSnp() throws Exception {
Assume.assumeTrue(GitRepositoryState.get().getBranch().equals("TASK-5789"));
Assumptions.assumeTrue(GitRepositoryState.get().getBranch().equals("TASK-5789"));

ClientConfiguration clientConfiguration = new ClientConfiguration()
.setDefaultSpecies("hsapiens")
Expand Down

0 comments on commit 377c0b7

Please sign in to comment.