Skip to content

Commit

Permalink
Fix DOI Resultion Test (#8703)
Browse files Browse the repository at this point in the history
* Add missing requires "antlr.runtime"

* Update expected return value

* Remove change in module-info.java
  • Loading branch information
koppor authored Apr 20, 2022
1 parent f8cff6a commit 911804b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void linkWithPdfStringLeadsToFulltext() throws IOException {
@Test
void citationMetaTagLeadsToFulltext() throws IOException {
entry.setField(StandardField.DOI, "10.1007/978-3-319-89963-3_28");
assertEquals(Optional.of(new URL("https://link.springer.com/content/pdf/10.1007%2F978-3-319-89963-3_28.pdf")), finder.findFullText(entry));
assertEquals(Optional.of(new URL("https://link.springer.com/content/pdf/10.1007/978-3-319-89963-3_28.pdf")), finder.findFullText(entry));
}

@Test
Expand All @@ -65,7 +65,7 @@ void returnAnythingWhenBehindSpringerPayWall() throws IOException {
// even if the user does not have access
// We cannot easily handle this case, because other publisher return the wrong media type.
entry.setField(StandardField.DOI, "10.1007/978-3-319-62594-2_12");
assertEquals(Optional.of(new URL("https://link.springer.com/content/pdf/10.1007%2F978-3-319-62594-2_12.pdf")), finder.findFullText(entry));
assertEquals(Optional.of(new URL("https://link.springer.com/content/pdf/10.1007/978-3-319-62594-2_12.pdf")), finder.findFullText(entry));
}

@Test
Expand Down

0 comments on commit 911804b

Please sign in to comment.