| de.jwic.test.ControlTestCase
ControlTestCase | abstract public class ControlTestCase extends TestCase (Code) | | Tool class that is usefull to test controls. The control's test-class must
be created in the createControl(..) method. The test methods can then
access the control using the protected 'control' field. The control can
be modified like this:
MyControl myControl = (MyControl)control;
updateField("field1", "value");
updateField("text", "abc");
updateDone();
sendAction(control, "click", "1");
assertEquals(myControl.getText(), "abc");
author: Florian Lippisch |
sendAction | protected void sendAction(Control control, String action, String param)(Code) | | Simulates a fireAction on the specified control.
Parameters: control - Parameters: action - Parameters: param - |
updateDone | protected void updateDone()(Code) | | Processes the updateQueue and invokes pending valueChanged listeners.
|
updateField | protected void updateField(String fieldName, String value)(Code) | | Simulate the update of a field. You must call updateDone() after all fields of
the controls have been set to invoke pending listeners.
Parameters: control - Parameters: fieldName - Parameters: value - |
updateField | protected void updateField(Control control, String fieldName, String value)(Code) | | Simulate the update of a field. You must call updateDone() after all fields of
the controls have been set to invoke pending listeners.
Parameters: control - Parameters: fieldName - Parameters: value - |
updateField | protected void updateField(Control control, String fieldName, String value)(Code) | | Simulate the update of a field. You must call updateDone() after all fields of
the controls have been set to invoke pending listeners.
Parameters: control - Parameters: fieldName - Parameters: value - |
|
|