Skip to content

Commit

Permalink
Run SpringerFetcherTests to verify functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusDietz committed Mar 17, 2020
1 parent 8e3defc commit 31195ef
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void setUp() {
fetcher = new SpringerFetcher();
}

@DisabledOnCIServer("Disable on CI Server to not hit the API call limit")
//@DisabledOnCIServer("Disable on CI Server to not hit the API call limit")
@Test
void searchByQueryFindsEntry() throws Exception {
BibEntry expected = new BibEntry(StandardEntryType.Article);
Expand All @@ -49,7 +49,7 @@ void searchByQueryFindsEntry() throws Exception {
assertEquals(Collections.singletonList(expected), fetchedEntries);
}

@DisabledOnCIServer("Disable on CI Server to not hit the API call limit")
//@DisabledOnCIServer("Disable on CI Server to not hit the API call limit")
@Test
void testSpringerJSONToBibtex() {
String jsonString = "{\r\n" + " \"identifier\":\"doi:10.1007/BF01201962\",\r\n"
Expand All @@ -73,7 +73,7 @@ void testSpringerJSONToBibtex() {
assertEquals(Optional.of("1992-09-01"), bibEntry.getField(StandardField.DATE));
}

@DisabledOnCIServer("Disable on CI Server to not hit the API call limit")
//@DisabledOnCIServer("Disable on CI Server to not hit the API call limit")
@Test
void searchByEmptyQueryFindsNothing() throws Exception {
assertEquals(Collections.emptyList(), fetcher.performSearch(""));
Expand Down

0 comments on commit 31195ef

Please sign in to comment.