}
-
- 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);
confirmReadMeSheet(workbook, clazz);
*/
class TestBooleanFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestBooleanFunctionsFromSpreadsheet.class, "BooleanFunctionsTestCaseData.xls");
+ return dataFromClass(TestBooleanFunctionsFromSpreadsheet.class, "BooleanFunctionsTestCaseData.xls");
}
}
*/
class TestCodeFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestCodeFunctionsFromSpreadsheet.class, "CodeFunctionTestCaseData.xls");
+ return dataFromClass(TestCodeFunctionsFromSpreadsheet.class, "CodeFunctionTestCaseData.xls");
}
}
\ No newline at end of file
*/
class TestComplexFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestComplexFunctionsFromSpreadsheet.class, "ComplexFunctionTestCaseData.xls");
+ return dataFromClass(TestComplexFunctionsFromSpreadsheet.class, "ComplexFunctionTestCaseData.xls");
}
}
\ No newline at end of file
*/
class TestDGetFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestDGetFunctionsFromSpreadsheet.class, "DGet.xls");
+ return dataFromClass(TestDGetFunctionsFromSpreadsheet.class, "DGet.xls");
}
}
*/
class TestDStarFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestDStarFunctionsFromSpreadsheet.class, "DStar.xls");
+ return dataFromClass(TestDStarFunctionsFromSpreadsheet.class, "DStar.xls");
}
}
class TestDateTimeToNumberFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestDateTimeToNumberFromSpreadsheet.class, "DateTimeToNumberTestCases.xls");
+ return dataFromClass(TestDateTimeToNumberFromSpreadsheet.class, "DateTimeToNumberTestCases.xls");
}
}
\ No newline at end of file
*/
class TestDeltaFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestDeltaFunctionsFromSpreadsheet.class, "DeltaFunctionTestCaseData.xls");
+ return dataFromClass(TestDeltaFunctionsFromSpreadsheet.class, "DeltaFunctionTestCaseData.xls");
}
}
*/
class TestFactDoubleFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestFactDoubleFunctionsFromSpreadsheet.class, "FactDoubleFunctionTestCaseData.xls");
+ return dataFromClass(TestFactDoubleFunctionsFromSpreadsheet.class, "FactDoubleFunctionTestCaseData.xls");
}
}
*/
class TestFixedFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
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 {
public static Stream<Arguments> data() throws Exception {
- return data(TestIFFunctionFromSpreadsheet.class, "IfFunctionTestCaseData.xls");
+ return dataFromClass(TestIFFunctionFromSpreadsheet.class, "IfFunctionTestCaseData.xls");
}
}
class TestIfnaFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestIfnaFromSpreadsheet.class, "IfNaTestCaseData.xls");
+ return dataFromClass(TestIfnaFromSpreadsheet.class, "IfNaTestCaseData.xls");
}
}
*/
class TestImRealFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestImRealFunctionsFromSpreadsheet.class, "ImRealFunctionTestCaseData.xls");
+ return dataFromClass(TestImRealFunctionsFromSpreadsheet.class, "ImRealFunctionTestCaseData.xls");
}
}
*/
class TestImaginaryFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestImaginaryFunctionsFromSpreadsheet.class, "ImaginaryFunctionTestCaseData.xls");
+ return dataFromClass(TestImaginaryFunctionsFromSpreadsheet.class, "ImaginaryFunctionTestCaseData.xls");
}
}
*/
final class TestIndexFunctionFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestIndexFunctionFromSpreadsheet.class, "IndexFunctionTestCaseData.xls");
+ return dataFromClass(TestIndexFunctionFromSpreadsheet.class, "IndexFunctionTestCaseData.xls");
}
}
*/
final class TestIndirectFunctionFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestIndirectFunctionFromSpreadsheet.class, "IndirectFunctionTestCaseData.xls");
+ return dataFromClass(TestIndirectFunctionFromSpreadsheet.class, "IndirectFunctionTestCaseData.xls");
}
}
*/
class TestLogicalFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestLogicalFunctionsFromSpreadsheet.class, "LogicalFunctionsTestCaseData.xls");
+ return dataFromClass(TestLogicalFunctionsFromSpreadsheet.class, "LogicalFunctionsTestCaseData.xls");
}
}
*/
final class TestLookupFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestLookupFunctionsFromSpreadsheet.class, "LookupFunctionsTestCaseData.xls");
+ return dataFromClass(TestLookupFunctionsFromSpreadsheet.class, "LookupFunctionsTestCaseData.xls");
}
}
*/
final class TestMatchFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestMatchFunctionsFromSpreadsheet.class, "MatchFunctionTestCaseData.xls");
+ return dataFromClass(TestMatchFunctionsFromSpreadsheet.class, "MatchFunctionTestCaseData.xls");
}
}
*/
class TestQuotientFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestQuotientFunctionsFromSpreadsheet.class, "QuotientFunctionTestCaseData.xls");
+ return dataFromClass(TestQuotientFunctionsFromSpreadsheet.class, "QuotientFunctionTestCaseData.xls");
}
}
*/
class TestReptFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestReptFunctionsFromSpreadsheet.class, "ReptFunctionTestCaseData.xls");
+ return dataFromClass(TestReptFunctionsFromSpreadsheet.class, "ReptFunctionTestCaseData.xls");
}
}
\ No newline at end of file
*/
class TestRomanFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestRomanFunctionsFromSpreadsheet.class, "RomanFunctionTestCaseData.xls");
+ return dataFromClass(TestRomanFunctionsFromSpreadsheet.class, "RomanFunctionTestCaseData.xls");
}
}
*/
class TestTrendFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestTrendFunctionsFromSpreadsheet.class, "Trend.xls");
+ return dataFromClass(TestTrendFunctionsFromSpreadsheet.class, "Trend.xls");
}
}
*/
class TestTwoOperandNumericFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestTwoOperandNumericFunctionsFromSpreadsheet.class, "TwoOperandNumericFunctionTestCaseData.xls");
+ return dataFromClass(TestTwoOperandNumericFunctionsFromSpreadsheet.class, "TwoOperandNumericFunctionTestCaseData.xls");
}
}
*/
class TestWeekNumFunctionsFromSpreadsheet extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
- return data(TestWeekNumFunctionsFromSpreadsheet.class, "WeekNumFunctionTestCaseData.xls");
+ return dataFromClass(TestWeekNumFunctionsFromSpreadsheet.class, "WeekNumFunctionTestCaseData.xls");
}
}
class TestWeekNumFunctionsFromSpreadsheet2013 extends BaseTestFunctionsFromSpreadsheet {
public static Stream<Arguments> data() throws Exception {
//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");
}
}