final String description = selectedFunction.getParameterDescription( paramPos, Locale.getDefault() );
for ( int x = 0; x < count; x++ ) { assertNotNull( data.getParameterType( x ) ); assertNotNull( data.getParameterDescription( x, Locale.ENGLISH ) ); assertNotNull( data.getParameterDisplayName( x, Locale.ENGLISH ) );
protected void performTranslationTest( String function ) { FunctionDescription functionDesc = context.getFunctionRegistry().getMetaData( function ); assertFalse( StringUtils.isEmpty( functionDesc.getDisplayName( Locale.ENGLISH ) ) ); assertFalse( StringUtils.isEmpty( functionDesc.getDescription( Locale.ENGLISH ) ) ); int count = functionDesc.getParameterCount(); for ( int x = 0; x < count; x++ ) { assertFalse( StringUtils.isEmpty( functionDesc.getParameterDescription( x, Locale.ENGLISH ) ) ); assertFalse( StringUtils.isEmpty( functionDesc.getParameterDisplayName( x, Locale.ENGLISH ) ) ); } } }
public void testTranslationsAvailable() { FunctionRegistry registry = context.getFunctionRegistry(); String[] functions = registry.getFunctionNames(); for ( int i = 0; i < functions.length; i++ ) { String function = functions[ i ]; FunctionDescription functionDesc = registry.getMetaData( function ); assertFalse( StringUtils.isEmpty( functionDesc.getDisplayName( Locale.ENGLISH ) ) ); assertFalse( StringUtils.isEmpty( functionDesc.getDescription( Locale.ENGLISH ) ) ); int count = functionDesc.getParameterCount(); for ( int x = 0; x < count; x++ ) { assertFalse( StringUtils.isEmpty( functionDesc.getParameterDescription( x, Locale.ENGLISH ) ) ); assertFalse( StringUtils.isEmpty( functionDesc.getParameterDisplayName( x, Locale.ENGLISH ) ) ); } } } }