com.canoo.webtest.engine
Class RegExStringVerifier

java.lang.Object
  extended by com.canoo.webtest.engine.RegExStringVerifier
All Implemented Interfaces:
IStringVerifier

public class RegExStringVerifier
extends Object
implements IStringVerifier

Compares string evaluating the expected value as a regular expression

Author:
Carsten Seibert, Dierk Koenig, Marc Guillemot
See Also:
Pattern

Field Summary
static IStringVerifier INSTANCE
           
 
Constructor Summary
RegExStringVerifier()
           
 
Method Summary
 boolean verifyStrings(String pattern, String actualValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final IStringVerifier INSTANCE
Constructor Detail

RegExStringVerifier

public RegExStringVerifier()
Method Detail

verifyStrings

public boolean verifyStrings(String pattern,
                             String actualValue)
Specified by:
verifyStrings in interface IStringVerifier
Parameters:
pattern - the pattern to search for
actualValue - The actual value of the string
Returns:
true if the pattern can be found in the actual value
See Also:
IStringVerifier.verifyStrings(java.lang.String, java.lang.String)

Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved.