When the test entered a value into a text field, the
field can't be cleared afterwards - new text is
appended to the existing text. Bugfixed enterText in
JTextComponentAdapter:
public void enterText(String componentName, String
text)
throws ComponentNotFoundException
{
assert canEnterText() : "canEnterText()";
assert componentName != null : "componentName
!= null";
assert text != null : "text != null";
Component component =
_finder.find(componentName, SEARCHING_TIME);
if (component instanceof JTextComponent)
{
JTextComponentOperator operator = new
JTextComponentOperator(
(JTextComponent) component);
operator.clearText();
operator.typeText(text);
} else
{
throw new FitFailureException(
"JTextComponentAdapter can´t handle
a component of class "
+
component.getClass().getName());
}
}