package eu.dnetlib.download.plugin;

import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;

@Ignore
public class SignpostingPluginTest {

	@Test
	public void extractUrl(){
		final SignpostingPlugin plugin = new SignpostingPlugin();
		//final String fulltextUrl = plugin.extractURL("http://ktisis.cut.ac.cy/handle/10488/4268");
		//final String fulltextUrl = plugin.extractURL("https://pub.uni-bielefeld.de/record/2937099");
		//final String fulltextUrl = plugin.extractURL("https://tore.tuhh.de/handle/11420/5569");
		final String fulltextUrl = plugin.extractURL("https://www.annalsofgeophysics.eu/index.php/annals/article/view/8321");
		System.out.println("fulltext: " + fulltextUrl);
		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");
	}
}
