package eu.dnetlib.data.collector.plugins.ariadneplus.thanados; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.junit.Ignore; import org.junit.Test; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; @Ignore public class ThanadosIteratorTest { String sitelist = "https://thanados.net/sites/sitelist"; ThanadosIterator it; @Test public void testDownloadList(){ it = new ThanadosIterator("", sitelist); it.getIdentifiers().stream().forEach(id -> System.out.println(id)); System.out.println(it.getIdentifiers().size()); } @Test public void testDownload() throws IOException { int count = 0; it = new ThanadosIterator("https://thanados.openatlas.eu/api/0.3/subunits", sitelist); while(it.hasNext()){ it.next(); count++; System.out.println(count); } System.out.println("DONE"); } }