1
0
Fork 0

adjusted test

This commit is contained in:
Claudio Atzori 2021-05-20 15:31:42 +02:00
parent 2e70aa43f0
commit ea9b00ce56
2 changed files with 4 additions and 3 deletions

View File

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

View File

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