forked from D-Net/dnet-hadoop
adjusted test
This commit is contained in:
parent
2e70aa43f0
commit
ea9b00ce56
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue