asf.fieldValues.length );
ActionFieldValue fv1 = asf.fieldValues[0];
assertNotNull( fv1 );
assertTrue( fv1 instanceof ActionWorkItemFieldValue );
ActionWorkItemFieldValue wifv1 = (ActionWorkItemFieldValue) fv1;
assertEquals( "ResultBooleanField",
wifv1.field );
assertEquals( SuggestionCompletionEngine.TYPE_BOOLEAN,
wifv1.type );
assertEquals( "WorkItem",
wifv1.getWorkItemName() );
assertEquals( "BooleanResult",
wifv1.getWorkItemParameterName() );
assertEquals( Boolean.class.getName(),
wifv1.getWorkItemParameterClassName() );
ActionFieldValue fv2 = asf.fieldValues[1];
assertNotNull( fv2 );
assertTrue( fv2 instanceof ActionWorkItemFieldValue );
ActionWorkItemFieldValue wifv2 = (ActionWorkItemFieldValue) fv2;
assertEquals( "ResultFloatField",
wifv2.field );
assertEquals( SuggestionCompletionEngine.TYPE_NUMERIC,
wifv2.type );
assertEquals( "WorkItem",
wifv2.getWorkItemName() );
assertEquals( "FloatResult",
wifv2.getWorkItemParameterName() );
assertEquals( Float.class.getName(),
wifv2.getWorkItemParameterClassName() );
ActionFieldValue fv3 = asf.fieldValues[2];
assertNotNull( fv3 );
assertTrue( fv3 instanceof ActionWorkItemFieldValue );
ActionWorkItemFieldValue wifv3 = (ActionWorkItemFieldValue) fv3;
assertEquals( "ResultIntegerField",
wifv3.field );
assertEquals( SuggestionCompletionEngine.TYPE_NUMERIC,
wifv3.type );
assertEquals( "WorkItem",
wifv3.getWorkItemName() );
assertEquals( "IntegerResult",
wifv3.getWorkItemParameterName() );
assertEquals( Integer.class.getName(),
wifv3.getWorkItemParameterClassName() );
ActionFieldValue fv4 = asf.fieldValues[3];
assertNotNull( fv4 );
assertTrue( fv4 instanceof ActionWorkItemFieldValue );
ActionWorkItemFieldValue wifv4 = (ActionWorkItemFieldValue) fv4;
assertEquals( "ResultStringField",
wifv4.field );
assertEquals( SuggestionCompletionEngine.TYPE_STRING,
wifv4.type );
assertEquals( "WorkItem",
wifv4.getWorkItemName() );
assertEquals( "StringResult",
wifv4.getWorkItemParameterName() );
assertEquals( String.class.getName(),
wifv4.getWorkItemParameterClassName() );
}