smarter DatePicker for ISO dates on dateofacceptance #115
|
@ -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