Revision 49889
Added by Alessia Bardi about 7 years ago
modules/dnet-download-plugins/trunk/src/test/java/eu/dnetlib/download/plugin/DSpacePDFLinkPluginsTest.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.download.plugin; |
2 | 2 |
|
3 | 3 |
import org.junit.Assert; |
4 |
import org.junit.Ignore; |
|
4 | 5 |
import org.junit.Test; |
5 | 6 |
|
6 | 7 |
/** |
7 | 8 |
* Created by sandro on 5/15/17. |
8 | 9 |
*/ |
10 |
@Ignore |
|
9 | 11 |
public class DSpacePDFLinkPluginsTest { |
10 | 12 |
|
11 | 13 |
|
... | ... | |
16 | 18 |
|
17 | 19 |
final String s1 = plugin.extractURL("http://acikerisim.baskent.edu.tr/handle/11727/2340"); |
18 | 20 |
Assert.assertEquals(s1, "http://acikerisim.baskent.edu.tr/bitstream/11727/2340/1/10008302.pdf"); |
21 |
} |
|
19 | 22 |
|
23 |
@Test |
|
24 |
public void testDOI() { |
|
25 |
final DSpacePDFLinkPlugins plugin = new DSpacePDFLinkPlugins(); |
|
20 | 26 |
|
27 |
final String s1 = plugin.extractURL("http://hdl.handle.net/10017/29866"); |
|
28 |
// Assert.assertEquals(s1, "http://acikerisim.baskent.edu.tr/bitstream/11727/2340/1/10008302.pdf"); |
|
29 |
System.out.println(s1); |
|
21 | 30 |
} |
31 |
|
|
32 |
|
|
22 | 33 |
} |
Also available in: Unified diff
Ignore tests relying on external URL