diff --git a/src/test/java/org/jabref/gui/importer/fetcher/OAI2HandlerFetcherTest.java b/src/test/java/org/jabref/gui/importer/fetcher/OAI2HandlerFetcherTest.java index 46dd1e87880..7afbc5c4edb 100644 --- a/src/test/java/org/jabref/gui/importer/fetcher/OAI2HandlerFetcherTest.java +++ b/src/test/java/org/jabref/gui/importer/fetcher/OAI2HandlerFetcherTest.java @@ -11,8 +11,8 @@ import org.jabref.model.entry.BibEntry; import org.jabref.testutils.category.FetcherTest; -import org.junit.Ignore; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.xml.sax.SAXException; @@ -23,9 +23,7 @@ /** * Test for OAI2-Handler and Fetcher. * - * @author Ulrich Stärk - * @author Christian Kopf - * @author Christopher Oezbek + * FIXME: Move this AND the OAI2HandlerFetcher to org.jabref.logic. Needs to be rewritten to new interface */ @FetcherTest @@ -123,23 +121,21 @@ public void testFixKey() { } @Test - @Ignore - public void testOnline() throws InterruptedException, IOException, SAXException { - - { - OAI2Fetcher fetcher = new OAI2Fetcher(); - be = fetcher.importOai2Entry("math.RA/0612188"); - assertNotNull(be); - - assertEquals(Optional.of("math/0612188"), be.getField("eprint")); - assertEquals(Optional.of("On the classification and properties of noncommutative duplicates"), - be.getField("title")); - assertEquals(Optional.of("Javier López Peña and Gabriel Navarro"), be.getField("author")); - assertEquals(Optional.of("2007"), be.getField("year")); + public void testMathRA0612188() throws Exception { + OAI2Fetcher fetcher = new OAI2Fetcher(); + be = fetcher.importOai2Entry("math.RA/0612188"); + assertNotNull(be); - Thread.sleep(20000); - } + assertEquals(Optional.of("math/0612188"), be.getField("eprint")); + assertEquals(Optional.of("On the classification and properties of noncommutative duplicates"), + be.getField("title")); + assertEquals(Optional.of("Javier López Peña and Gabriel Navarro"), be.getField("author")); + assertEquals(Optional.of("2"), be.getField("year")); + } + @Test + @Disabled + public void testOnline() throws InterruptedException, IOException, SAXException { { OAI2Fetcher fetcher = new OAI2Fetcher(); be = fetcher.importOai2Entry("astro-ph/0702080");