@Test public void notFoundByDOI() throws IOException { // CI server is unreliable Assume.assumeFalse(DevEnvironment.isCIServer()); entry.setField("doi", "10.1021/bk-2006-WWW.ch014"); Assert.assertEquals(Optional.empty(), finder.findFullText(entry)); }
@Test public void findByDOI() throws IOException { // CI server is unreliable Assume.assumeFalse(DevEnvironment.isCIServer()); entry.setField("doi", "10.1021/bk-2006-STYG.ch014"); Assert.assertEquals( Optional.of(new URL("http://pubs.acs.org/doi/pdf/10.1021/bk-2006-STYG.ch014")), finder.findFullText(entry)); }