diff --git a/inception/inception-dependencies/pom.xml b/inception/inception-dependencies/pom.xml index 7c9db696228..788865f9183 100644 --- a/inception/inception-dependencies/pom.xml +++ b/inception/inception-dependencies/pom.xml @@ -971,7 +971,7 @@ org.xerial.snappy snappy-java - 1.1.10.3 + 1.1.10.4 diff --git a/inception/inception-external-search-pubmed/src/test/java/de/tudarmstadt/ukp/inception/externalsearch/pubmed/entrez/EntrezClientTest.java b/inception/inception-external-search-pubmed/src/test/java/de/tudarmstadt/ukp/inception/externalsearch/pubmed/entrez/EntrezClientTest.java index 5cf5d8dfab4..3392b30e0b6 100644 --- a/inception/inception-external-search-pubmed/src/test/java/de/tudarmstadt/ukp/inception/externalsearch/pubmed/entrez/EntrezClientTest.java +++ b/inception/inception-external-search-pubmed/src/test/java/de/tudarmstadt/ukp/inception/externalsearch/pubmed/entrez/EntrezClientTest.java @@ -17,6 +17,8 @@ */ package de.tudarmstadt.ukp.inception.externalsearch.pubmed.entrez; +import static org.assertj.core.api.Assertions.assertThat; + import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; @@ -38,9 +40,9 @@ public void thatESearchWorks() throws Exception { var results = sut.esearch("pmc", "asthma", 0, 10); - System.out.println(results); + // System.out.println(results); - // assertThat(results).isNotEmpty(); + assertThat(results.getIdList()).isNotEmpty(); } @Test @@ -48,8 +50,8 @@ public void thatEsummaryWorks() throws Exception { var results = sut.esummary("pmc", 6678417, 9507199); - System.out.println(results); + // System.out.println(results); - // assertThat(results).isNotEmpty(); + assertThat(results.getDocSumaries()).isNotEmpty(); } } diff --git a/inception/inception-external-search-pubmed/src/test/java/de/tudarmstadt/ukp/inception/externalsearch/pubmed/pmcoa/PmcOaClientTest.java b/inception/inception-external-search-pubmed/src/test/java/de/tudarmstadt/ukp/inception/externalsearch/pubmed/pmcoa/PmcOaClientTest.java index 79b048bf2f8..0d6093788df 100644 --- a/inception/inception-external-search-pubmed/src/test/java/de/tudarmstadt/ukp/inception/externalsearch/pubmed/pmcoa/PmcOaClientTest.java +++ b/inception/inception-external-search-pubmed/src/test/java/de/tudarmstadt/ukp/inception/externalsearch/pubmed/pmcoa/PmcOaClientTest.java @@ -42,10 +42,11 @@ public void setup() throws InterruptedException @Test public void thatBiocWorks() throws Exception { - String results = new String(sut.bioc(traits, "PMC8222896"), UTF_8); + String results = new String(sut.bioc(traits, "PMC7096989"), UTF_8); // System.out.println(results); - assertThat(results).contains("Longitudinal symptoms in asthmatic COVID‐19 patients."); + assertThat(results) + .contains("Asthma is the most common inflammatory disease of the lungs."); } }