orcid-no-doi #123

Merged
claudio.atzori merged 13 commits from enrico.ottonello/dnet-hadoop:orcid-no-doi into master 2021-07-15 17:53:59 +02:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit ea9b00ce56 - Show all commits

View File

@ -32,7 +32,7 @@ public class EXCELParser {
XSSFSheet sheet = wb.getSheet(sheetName);
if(sheetName == null){
if (sheetName == null) {
throw new RuntimeException("Sheet name " + sheetName + " not present in current file");
}

View File

@ -35,8 +35,9 @@ public class EXCELParserTest {
EXCELParser excelParser = new EXCELParser();
List<Object> pl = excelParser
.parse(httpConnector.getInputSourceAsStream(URL), "eu.dnetlib.dhp.actionmanager.project.utils.ExcelTopic");
final String classForName = "eu.dnetlib.dhp.actionmanager.project.utils.ExcelTopic";
final String sheetName = "Topics";
List<Object> pl = excelParser.parse(httpConnector.getInputSourceAsStream(URL), classForName, sheetName);
Assertions.assertEquals(3837, pl.size());