Hi all,
I think there is a bug in LabeledComponentFinder when
using regular expressions: When evaluate(final String
leftside, final String rightside) is called from
testComponent(final Component comp), the arguments
must be switched IMHO.
I patched the bug successfully by subclassing and
overloading testComponent:
public boolean testComponent(final Component comp)
{
if (comp != null && comp instanceof JLabel)
{
JLabel lbl = (JLabel) comp;
return super.evaluate(lbl.getText(), getText
());
}
return false;
}
Cheers,
Andreas
Logged In: YES
user_id=1007725
Originator: NO
fixed. www.sf.net/projects/jfcunit-2