public class StringMatchingSpecification extends StringSpecification
StringSpecification.Options
. Matching
supports the following wildcards: StringSpecification.Options
Modifier and Type | Field and Description |
---|---|
static String |
MULTI_CHARACTER_WILDCARD
Wildcard for matching any zero-length or longer character sequence.
|
static String |
SINGLE_CHARACTER_WILDCARD
Wildcard for matching any character.
|
expectedString, options
Constructor and Description |
---|
StringMatchingSpecification(String expectedString,
StringSpecification.Options options)
Creates a string-matching specification.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isSatisfiedByString(String candidateString) |
String |
toString() |
getExpectedString, getOptions, isSatisfiedBy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
and, any, asPredicate, negate, none, or
public static final String MULTI_CHARACTER_WILDCARD
public static final String SINGLE_CHARACTER_WILDCARD
public StringMatchingSpecification(String expectedString, StringSpecification.Options options)
expectedString
- the string that the candidate is expected to match.options
- the matching options.protected boolean isSatisfiedByString(String candidateString)
isSatisfiedByString
in class StringSpecification
Copyright © 2013-2018–2019 SeedStack. All rights reserved.