import org.drools.brms.client.modeldriven.brl.ActionSetField;
public class ActionSetFieldTest extends TestCase {
public void testRemove() {
final ActionSetField set = new ActionSetField();
set.fieldValues = new ActionFieldValue[2];
final ActionFieldValue v0 = new ActionFieldValue( "x",
"42",
SuggestionCompletionEngine.TYPE_NUMERIC );
final ActionFieldValue v1 = new ActionFieldValue( "y",
"43",
SuggestionCompletionEngine.TYPE_NUMERIC );
set.fieldValues[0] = v0;
set.fieldValues[1] = v1;
set.removeField( 1 );
assertEquals( 1,
set.fieldValues.length );
assertEquals( v0,
set.fieldValues[0] );