THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Focus | ID | Description | Test Data |
---|---|---|---|
ServiceLoader API | 1 | Tests when there are no providers found by the ServiceLoader API due to missing or empty meta-inf file | No META-INF/Services/org.apache.daffodil.udf.UDFunctionProvider file on classpath of classLoader (CLI Test) |
2 | Tests when there is an error thrown from ServiceLoader API | META-INF/Services/org.apache.daffodil.udf.UDFunctionProvider file contains typo in class name | |
Provider Class | 3 | Tests when UDF Provider has no function classes | UDF with no call to setFunctionClasses initializing functionClasses to array of classes |
4 | Tests when UDF Provider has empty function class | UDF with call to setFunctionClasses initializing functionClasses to empty array of classes | |
5 | Tests when provider doesn’t implement UDFunctionProvider | UDF with Provider that doesn’t extend UDFunctionProvider class | |
Function Class | 6 | Tests when function classes don’t implement Serializable classUserDefinedFunction interface | UDF with function class that doesn’t implement Serializable implement UserDefinedFunction interface |
7 | Tests when function classes don’t have annotations | UDF with function class that doesn’t have function class have UserDefinedFunctionIdentification annotation | |
8 | Tests when function classes have empty/invalid annotation fields | UDF with function class that has annotation function with empty fields | |
9 | Tests when function classes have no evaluate function | UDF with function class whose method isn’t named “evaluate” | |
10 | Tests when function can’t be found | Function call from schema with no non either non existent namespace or name | |
Evaluate function | 11 | Tests when function class have overloaded evaluate function | UDF with overloaded evaluate function |
12 | Tests when arguments number incorrect | Function call from schema with incorrect arg number | |
13 | Tests when argument types incorrect | Function call from schema with incorrect arg type | |
14 | Tests when argument types unsupported | Function call from schema with unsupported type (such as Calendar) | |
15 | Tests when return type unsupported | UDF with unsupported return type such as Array of Arrays | |
16 | Tests UDF with no args | UDF with no param and static return type | |
17 | Tests UDF with no return type | UDF with void return type | |
Primitive Arg/Return Types Testing | 18 | Tests UDF with primitive int params and returns | UDF with primitive params and return |
19 | Tests UDF with primitive byte params and returns | UDF with primitive params and return | |
20 | Tests UDF with primitive short params and returns | UDF with primitive params and return | |
21 | Tests UDF with primitive long params and returns | UDF with primitive params and return | |
22 | Tests UDF with primitive double params and returns | UDF with primitive params and return | |
23 | Tests UDF with primitive float params and returns | UDF with primitive params and return | |
24 | Tests UDF with primitive boolean params and returns | UDF with primitive params and return | |
Boxed Args/Return Type Testing | 25 | Tests UDF with Boxed Integer params and returns | UDF with boxed params and return |
26 | Tests UDF with Boxed Byte params and returns | UDF with boxed params and return | |
27 | Tests UDF with Boxed Short params and returns | UDF with boxed params and return | |
28 | Tests UDF with Boxed Long params and returns | UDF with boxed params and return | |
29 | Tests UDF with Boxed Double params and returns | UDF with boxed params and return | |
30 | Tests UDF with Boxed Float params and returns | UDF with boxed params and return | |
31 | Tests UDF with Boxed Boolean params and returns | UDF with boxed params and return | |
Other Param/Return Types | 32 | Tests UDF with Java Big Integer params and returns | UDF with specified params and returns |
33 | Tests UDF with Java Big Decimal params and returns | UDF with specified params and returns | |
34 | Tests UDF with String params and returns | UDF with specified params and returns | |
35 | Tests UDF with Byte Array params and returns | UDF with specified params and returns | |
36 | Tests UDF with URI params and returns | UDF with specified params and returns |
...