StringMatchers

The StringMatchers trait provides matchers which are applicable to String objects

Companion:
object
class Object
trait Matchable
class Any

Type members

Inherited classlikes

class FindMatcher(t: => String) extends Matcher[String]

Matcher to find if the regexp a is found inside b. This matcher can be specialized to a FindMatcherWithGroups which will also check the found groups

Matcher to find if the regexp a is found inside b. This matcher can be specialized to a FindMatcherWithGroups which will also check the found groups

Inherited from:
StringBaseMatchers
class FindMatcherPattern(p: Pattern) extends FindMatcher

Matcher to find if the pattern p is found inside b.

Matcher to find if the pattern p is found inside b.

Inherited from:
StringBaseMatchers
class FindMatcherPatternWithGroups(p: Pattern, groups: String*) extends FindMatcherWithGroups

Matcher to find if the pattern p is found inside b.

Matcher to find if the pattern p is found inside b.

Inherited from:
StringBaseMatchers
class FindMatcherRegex(r: Regex) extends FindMatcherPattern

Matcher to find if the Regex r is found inside b.

Matcher to find if the Regex r is found inside b.

Inherited from:
StringBaseMatchers
class FindMatcherWithGroups(t: => String, groups: String*) extends Matcher[String]

Matcher to find if the regexp a is found inside b. This matcher checks if the found groups are really the ones expected

Matcher to find if the regexp a is found inside b. This matcher checks if the found groups are really the ones expected

Inherited from:
StringBaseMatchers
Inherited from:
StringBeHaveMatchers
class NotStringMatcher(result: NotMatcher[Any])
Inherited from:
StringBeHaveMatchers
class StringResultMatcher(result: MatchResult[String])
Inherited from:
StringBeHaveMatchers

Value members

Inherited methods

def !=/(s: String): Matcher[Any]

matches if a.toLowerCase.trim != b.toLowerCase.trim

matches if a.toLowerCase.trim != b.toLowerCase.trim

Inherited from:
StringBaseMatchers
def ==/(s: String): AdaptableMatcher[Any]

matches if a.toLowerCase.trim = b.toLowerCase.trim

matches if a.toLowerCase.trim = b.toLowerCase.trim

Inherited from:
StringBaseMatchers
def =~(r: Regex): BeMatchingRegex

alias for beMatching but matching just a fragment of the string

alias for beMatching but matching just a fragment of the string

Inherited from:
StringBaseMatchers
def =~(p: Pattern): BeMatchingPattern

alias for beMatching but matching just a fragment of the string

alias for beMatching but matching just a fragment of the string

Inherited from:
StringBaseMatchers
def =~(t: => String): BeMatching

alias for beMatching but matching just a fragment of the string

alias for beMatching but matching just a fragment of the string

Inherited from:
StringBaseMatchers
def be: NeutralMatcher[Any]
Inherited from:
BeHaveMatchers

matches if b matches the regex a

matches if b matches the regex a

Inherited from:
StringBaseMatchers
def beMatching(a: Pattern): BeMatchingPattern

matches if b matches the pattern a

matches if b matches the pattern a

Inherited from:
StringBaseMatchers
def beMatching(a: => String): BeMatching

matches if b matches the regular expression a

matches if b matches the regular expression a

Inherited from:
StringBaseMatchers
def be_!=/(a: String): Matcher[Any]

matches if a.toLowerCase.trim != b.toLowerCase.trim

matches if a.toLowerCase.trim != b.toLowerCase.trim

Inherited from:
StringBaseMatchers
def be_==/(a: String): AdaptableMatcher[Any]

matches if a.toLowerCase.trim = b.toLowerCase.trim

matches if a.toLowerCase.trim = b.toLowerCase.trim

Inherited from:
StringBaseMatchers
def contain(t: Char): Matcher[String]

matches if (b contains a)

matches if (b contains a)

Inherited from:
StringBaseMatchers
def contain(t: String): Matcher[String]

matches if (b contains a)

matches if (b contains a)

Inherited from:
StringBaseMatchers
def containing(s: String): Matcher[String]
Inherited from:
StringBeHaveMatchers
def endWith(t: => String): Matcher[String]

matches if b.endsWith(a)

matches if b.endsWith(a)

Inherited from:
StringBaseMatchers
def endingWith(s: => String): Matcher[String]
Inherited from:
StringBeHaveMatchers
def find(r: Regex): FindMatcherRegex

matches if the regexp r is found inside b

matches if the regexp r is found inside b

Inherited from:
StringBaseMatchers
def find(p: Pattern): FindMatcherPattern

matches if the pattern p is found inside b

matches if the pattern p is found inside b

Inherited from:
StringBaseMatchers
def find(a: => String): FindMatcher

matches if the regexp a is found inside b

matches if the regexp a is found inside b

Inherited from:
StringBaseMatchers
Inherited from:
BeHaveMatchers
def matching(r: Regex): BeMatchingRegex
Inherited from:
StringBeHaveMatchers
def matching(t: Pattern): BeMatchingPattern
Inherited from:
StringBeHaveMatchers
def matching(t: => String): BeMatching
Inherited from:
StringBeHaveMatchers
def not: NotMatcher[Any]
Inherited from:
BeHaveMatchers
def startWith(a: String): Matcher[String]

matches if b.startsWith(a)

matches if b.startsWith(a)

Inherited from:
StringBaseMatchers
def startingWith(s: => String): Matcher[String]
Inherited from:
StringBeHaveMatchers

Implicits

Implicits

adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher

adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher

Inherited implicits

Inherited from:
StringBeHaveMatchers
implicit def toNotStringMatcher(result: NotMatcher[Any]): NotStringMatcher
Inherited from:
StringBeHaveMatchers
Inherited from:
StringBeHaveMatchers