git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903053 13f79535-47bb-0310-9956-ffa450edef68tags/REL_5_2_3
} | } | ||||
protected static Stream<Arguments> data(Class<? extends BaseTestFunctionsFromSpreadsheet> clazz, String filename) throws Exception { | |||||
protected static Stream<Arguments> dataFromClass(Class<? extends BaseTestFunctionsFromSpreadsheet> clazz, String filename) throws Exception { | |||||
HSSFWorkbook workbook = HSSFTestDataSamples.openSampleWorkbook(filename); | HSSFWorkbook workbook = HSSFTestDataSamples.openSampleWorkbook(filename); | ||||
confirmReadMeSheet(workbook, clazz); | confirmReadMeSheet(workbook, clazz); | ||||
*/ | */ | ||||
class TestBooleanFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestBooleanFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestBooleanFunctionsFromSpreadsheet.class, "BooleanFunctionsTestCaseData.xls"); | |||||
return dataFromClass(TestBooleanFunctionsFromSpreadsheet.class, "BooleanFunctionsTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestCodeFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestCodeFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestCodeFunctionsFromSpreadsheet.class, "CodeFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestCodeFunctionsFromSpreadsheet.class, "CodeFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestComplexFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestComplexFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestComplexFunctionsFromSpreadsheet.class, "ComplexFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestComplexFunctionsFromSpreadsheet.class, "ComplexFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestDGetFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestDGetFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestDGetFunctionsFromSpreadsheet.class, "DGet.xls"); | |||||
return dataFromClass(TestDGetFunctionsFromSpreadsheet.class, "DGet.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestDStarFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestDStarFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestDStarFunctionsFromSpreadsheet.class, "DStar.xls"); | |||||
return dataFromClass(TestDStarFunctionsFromSpreadsheet.class, "DStar.xls"); | |||||
} | } | ||||
} | } |
class TestDateTimeToNumberFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestDateTimeToNumberFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestDateTimeToNumberFromSpreadsheet.class, "DateTimeToNumberTestCases.xls"); | |||||
return dataFromClass(TestDateTimeToNumberFromSpreadsheet.class, "DateTimeToNumberTestCases.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestDeltaFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestDeltaFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestDeltaFunctionsFromSpreadsheet.class, "DeltaFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestDeltaFunctionsFromSpreadsheet.class, "DeltaFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestFactDoubleFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestFactDoubleFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestFactDoubleFunctionsFromSpreadsheet.class, "FactDoubleFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestFactDoubleFunctionsFromSpreadsheet.class, "FactDoubleFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestFixedFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestFixedFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestFixedFunctionsFromSpreadsheet.class, "57003-FixedFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestFixedFunctionsFromSpreadsheet.class, "57003-FixedFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestIFFunctionFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestIFFunctionFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestIFFunctionFromSpreadsheet.class, "IfFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestIFFunctionFromSpreadsheet.class, "IfFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
class TestIfnaFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestIfnaFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestIfnaFromSpreadsheet.class, "IfNaTestCaseData.xls"); | |||||
return dataFromClass(TestIfnaFromSpreadsheet.class, "IfNaTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestImRealFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestImRealFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestImRealFunctionsFromSpreadsheet.class, "ImRealFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestImRealFunctionsFromSpreadsheet.class, "ImRealFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestImaginaryFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestImaginaryFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestImaginaryFunctionsFromSpreadsheet.class, "ImaginaryFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestImaginaryFunctionsFromSpreadsheet.class, "ImaginaryFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
final class TestIndexFunctionFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | final class TestIndexFunctionFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestIndexFunctionFromSpreadsheet.class, "IndexFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestIndexFunctionFromSpreadsheet.class, "IndexFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
final class TestIndirectFunctionFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | final class TestIndirectFunctionFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestIndirectFunctionFromSpreadsheet.class, "IndirectFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestIndirectFunctionFromSpreadsheet.class, "IndirectFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestLogicalFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestLogicalFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestLogicalFunctionsFromSpreadsheet.class, "LogicalFunctionsTestCaseData.xls"); | |||||
return dataFromClass(TestLogicalFunctionsFromSpreadsheet.class, "LogicalFunctionsTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
final class TestLookupFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | final class TestLookupFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestLookupFunctionsFromSpreadsheet.class, "LookupFunctionsTestCaseData.xls"); | |||||
return dataFromClass(TestLookupFunctionsFromSpreadsheet.class, "LookupFunctionsTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
final class TestMatchFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | final class TestMatchFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestMatchFunctionsFromSpreadsheet.class, "MatchFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestMatchFunctionsFromSpreadsheet.class, "MatchFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestQuotientFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestQuotientFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestQuotientFunctionsFromSpreadsheet.class, "QuotientFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestQuotientFunctionsFromSpreadsheet.class, "QuotientFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestReptFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestReptFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestReptFunctionsFromSpreadsheet.class, "ReptFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestReptFunctionsFromSpreadsheet.class, "ReptFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestRomanFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestRomanFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestRomanFunctionsFromSpreadsheet.class, "RomanFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestRomanFunctionsFromSpreadsheet.class, "RomanFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestTrendFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestTrendFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestTrendFunctionsFromSpreadsheet.class, "Trend.xls"); | |||||
return dataFromClass(TestTrendFunctionsFromSpreadsheet.class, "Trend.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestTwoOperandNumericFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestTwoOperandNumericFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestTwoOperandNumericFunctionsFromSpreadsheet.class, "TwoOperandNumericFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestTwoOperandNumericFunctionsFromSpreadsheet.class, "TwoOperandNumericFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
*/ | */ | ||||
class TestWeekNumFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | class TestWeekNumFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
return data(TestWeekNumFunctionsFromSpreadsheet.class, "WeekNumFunctionTestCaseData.xls"); | |||||
return dataFromClass(TestWeekNumFunctionsFromSpreadsheet.class, "WeekNumFunctionTestCaseData.xls"); | |||||
} | } | ||||
} | } |
class TestWeekNumFunctionsFromSpreadsheet2013 extends BaseTestFunctionsFromSpreadsheet { | class TestWeekNumFunctionsFromSpreadsheet2013 extends BaseTestFunctionsFromSpreadsheet { | ||||
public static Stream<Arguments> data() throws Exception { | public static Stream<Arguments> data() throws Exception { | ||||
//Only open this file with Excel 2013 to keep binary specific to that version | //Only open this file with Excel 2013 to keep binary specific to that version | ||||
return data(TestWeekNumFunctionsFromSpreadsheet2013.class, "WeekNumFunctionTestCaseData2013.xls"); | |||||
return dataFromClass(TestWeekNumFunctionsFromSpreadsheet2013.class, "WeekNumFunctionTestCaseData2013.xls"); | |||||
} | } | ||||
} | } |