Skip to content

Commit

Permalink
Exchange Ignore by Disabled (#3912)
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor authored and Siedlerchr committed Mar 31, 2018
1 parent afde094 commit 0b2db53
Showing 1 changed file with 15 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 0b2db53

Please sign in to comment.