1
0
Fork 0

removed not needed test class. Teh functionality has been moved

This commit is contained in:
Miriam Baglioni 2021-08-11 16:16:55 +02:00
parent 8da3a25cf6
commit 52c18c2697
1 changed files with 0 additions and 43 deletions

View File

@ -1,43 +0,0 @@
package eu.dnetlib.dhp.doiboost;
import java.util.List;
import org.apache.commons.io.IOUtils;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import eu.dnetlib.dhp.actionmanager.project.utils.CSVParser;
public class GetCSVTest {
@Test
public void readUnibiGoldTest() throws Exception {
String programmecsv = IOUtils
.toString(
getClass()
.getClassLoader()
.getResourceAsStream("eu/dnetlib/dhp/doiboost/issn_gold_oa_version_4.csv"));
CSVParser csvParser = new CSVParser();
List<Object> pl = csvParser.parse(programmecsv, "eu.dnetlib.doiboost.UnibiGoldModel", ',');
Assertions.assertEquals(72, pl.size());
// ObjectMapper OBJECT_MAPPER = new ObjectMapper();
//
// pl.forEach(res -> {
// try {
// System.out.println(OBJECT_MAPPER.writeValueAsString(res));
// } catch (JsonProcessingException e) {
// e.printStackTrace();
// }
// });
}
}