1
|
package eu.dnetlib.download.plugin;
|
2
|
|
3
|
import org.junit.Assert;
|
4
|
import org.junit.Ignore;
|
5
|
import org.junit.Test;
|
6
|
|
7
|
@Ignore
|
8
|
public class SignpostingPluginTest {
|
9
|
|
10
|
@Test
|
11
|
public void extractUrl(){
|
12
|
final SignpostingPlugin plugin = new SignpostingPlugin();
|
13
|
//final String fulltextUrl = plugin.extractURL("http://ktisis.cut.ac.cy/handle/10488/4268");
|
14
|
//final String fulltextUrl = plugin.extractURL("https://pub.uni-bielefeld.de/record/2937099");
|
15
|
//final String fulltextUrl = plugin.extractURL("https://tore.tuhh.de/handle/11420/5569");
|
16
|
final String fulltextUrl = plugin.extractURL("https://www.annalsofgeophysics.eu/index.php/annals/article/view/8321");
|
17
|
System.out.println("fulltext: " + fulltextUrl);
|
18
|
Assert.assertEquals(fulltextUrl, "https://www.annalsofgeophysics.eu/index.php/annals/article/download/8321/7200"); //"https://tore.tuhh.de/bitstream/11420/5569/1/Aberle2020_Article_WhoBenefitsFromMobilityAsAServ.pdf");
|
19
|
}
|
20
|
}
|