示例#1
0
  @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));
  }
示例#2
0
  @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));
  }