FEST

Overload methods that take String with a version that takes a regular expression pattern (issue 156)

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Minor 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 :
    0

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)

Activity

Hide
Ryan added a comment -

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

Show
Ryan added a comment - 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
Hide
Alex Ruiz added a comment -

Finally!

Show
Alex Ruiz added a comment - Finally!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: