Revision 58485
Added by Jochen Schirrwagen about 4 years ago
DSpacePDFLinkPluginsTest.java | ||
---|---|---|
20 | 20 |
|
21 | 21 |
|
22 | 22 |
@Test |
23 |
public void extractUrl(){ |
|
24 |
final DSpacePDFLinkPlugins plugin = new DSpacePDFLinkPlugins(); |
|
25 |
final String url = plugin.extractURL("http://dx.doi.org/10.1155/2006/690694"); //https://www.annalsofgeophysics.eu/index.php/annals/article/view/7507"); |
|
26 |
Assert.assertEquals(url, "http://downloads.hindawi.com/journals/sp/2006/690694.pdf"); //https://www.annalsofgeophysics.eu/index.php/annals/article/download/7507/6808"); |
|
27 |
} |
|
28 |
|
|
29 |
@Test |
|
23 | 30 |
public void testURL () { |
24 | 31 |
final DSpacePDFLinkPlugins plugin = new DSpacePDFLinkPlugins(); |
25 | 32 |
|
Also available in: Unified diff
added signposting plugin (publication boundary)