final FunctionRegistry functionRegistry = context.getFunctionRegistry();
final String[] names = functionRegistry.getFunctionNames();
for (int i = 0; i < names.length; i++)
{
final String name = names[i];
final FunctionDescription data = functionRegistry.getMetaData(name);
try
{
assertNotNull(data.getCategory());
assertNotNull(data.getDescription(Locale.ENGLISH));
assertNotNull(data.getDisplayName(Locale.ENGLISH));
assertNotNull(data.getValueType());
final int count = data.getParameterCount();
for (int x = 0; x < count; x++)
{
assertNotNull(data.getParameterType(x));
assertNotNull(data.getParameterDescription(x, Locale.ENGLISH));
assertNotNull(data.getParameterDisplayName(x, Locale.ENGLISH));
}
}
catch (Throwable t)
{
System.out.println("Failed at " + name);