Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

FocusIDDescriptionTest Data
ServiceLoader API

1Tests when there are no providers found by the ServiceLoader API due to missing or empty meta-inf fileNo META-INF/Services/org.apache.daffodil.udf.UDFunctionProvider file on classpath of classLoader (CLI Test)
2Tests when there is an error thrown from ServiceLoader APIMETA-INF/Services/org.apache.daffodil.udf.UDFunctionProvider file contains typo in class name
Provider Class

3Tests when UDF Provider has no function classesUDF with no call to setFunctionClasses initializing functionClasses to array of classes
4Tests when UDF Provider has empty function classUDF with call to setFunctionClasses initializing functionClasses to empty array of classes
5Tests when provider doesn’t implement UDFunctionProviderUDF with Provider that doesn’t extend UDFunctionProvider class
Function Class



6Tests when function classes don’t implement Serializable classUserDefinedFunction interfaceUDF with function class that doesn’t implement Serializable implement UserDefinedFunction interface
7Tests when function classes don’t have annotationsUDF with function class that doesn’t have function class have UserDefinedFunctionIdentification annotation
8Tests when function classes have empty/invalid annotation fieldsUDF with function class that has annotation function with empty fields
9Tests when function classes have no evaluate functionUDF with function class whose method isn’t named “evaluate”
10Tests when function can’t be foundFunction call from schema with no non either non existent namespace or name
Evaluate function




11Tests when function class have overloaded evaluate functionUDF with overloaded evaluate function
12Tests when arguments number incorrectFunction call from schema with incorrect arg number
13Tests when argument types incorrectFunction call from schema with incorrect arg type
14Tests when argument types unsupportedFunction call from schema with unsupported type (such as Calendar)
15Tests when return type unsupportedUDF with unsupported return type such as Array of Arrays
16Tests UDF with no argsUDF with no param and static return type

17Tests UDF with no return typeUDF with void return type
Primitive Arg/Return Types Testing





18Tests UDF with primitive int params and returnsUDF with primitive params and return
19Tests UDF with primitive byte params and returnsUDF with primitive params and return
20Tests UDF with primitive short params and returnsUDF with primitive params and return
21Tests UDF with primitive long params and returnsUDF with primitive params and return
22Tests UDF with primitive double params and returnsUDF with primitive params and return
23Tests UDF with primitive float params and returnsUDF with primitive params and return
24Tests UDF with primitive boolean params and returnsUDF with primitive params and return
Boxed Args/Return Type Testing





25Tests UDF with Boxed Integer params and returnsUDF with boxed params and return
26Tests UDF with Boxed Byte params and returnsUDF with boxed params and return
27Tests UDF with Boxed Short params and returnsUDF with boxed params and return
28Tests UDF with Boxed Long params and returnsUDF with boxed params and return
29Tests UDF with Boxed Double params and returnsUDF with boxed params and return
30Tests UDF with Boxed Float params and returnsUDF with boxed params and return
31Tests UDF with Boxed Boolean params and returnsUDF with boxed params and return
Other Param/Return Types



32Tests UDF with Java Big Integer params and returnsUDF with specified params and returns
33Tests UDF with Java Big Decimal params and returnsUDF with specified params and returns
34Tests UDF with String params and returnsUDF with specified params and returns
35Tests UDF with Byte Array params and returnsUDF with specified params and returns
36Tests UDF with URI params and returnsUDF with specified params and returns

...