Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: FEST-Swing 1.1
-
Fix Version/s: FEST-Swing 1.2a3
-
Component/s: Swing
-
Labels:None
-
Number of attachments :
Description
Adapted from original issue filed by Csabi:
For example, in JListFixture we can have:
- selectItem(Pattern item)
- selectItems(Pattern items)
where Pattern is java.util.regex.Pattern.
In general, each method accepting a String should have a corresponding method accepting a regex.
Original report: Issue 156 (Google Code)
I had a similar requirement today, very similar to the example on your google code page. http://code.google.com/p/fest/
dialog.optionPane().requireErrorMessage()
.requireMessage("Please enter your password");
Where requireMessage(String) could be a regex. We use QFTest as well and it has a feature like this, it's very handy.
Ryan