trait StringMatchers extends StringBaseMatchers with StringBeHaveMatchers
The StringMatchers
trait provides matchers which are applicable to String objects
- Alphabetic
- By Inheritance
- StringMatchers
- StringBeHaveMatchers
- BeHaveMatchers
- StringBaseMatchers
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
FindMatcher extends Matcher[String]
Matcher to find if the regexp a is found inside b.
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
- Definition Classes
- StringBaseMatchers
-
class
FindMatcherPattern extends FindMatcher
Matcher to find if the pattern p is found inside b.
Matcher to find if the pattern p is found inside b.
- Definition Classes
- StringBaseMatchers
-
class
FindMatcherPatternWithGroups extends FindMatcherWithGroups
Matcher to find if the pattern p is found inside b.
Matcher to find if the pattern p is found inside b.
- Definition Classes
- StringBaseMatchers
-
class
FindMatcherRegex extends FindMatcherPattern
Matcher to find if the Regex r is found inside b.
Matcher to find if the Regex r is found inside b.
- Definition Classes
- StringBaseMatchers
-
class
FindMatcherWithGroups extends Matcher[String]
Matcher to find if the regexp a is found inside b.
Matcher to find if the regexp a is found inside b. This matcher checks if the found groups are really the ones expected
- Definition Classes
- StringBaseMatchers
-
class
NeutralStringMatcher extends AnyRef
- Definition Classes
- StringBeHaveMatchers
-
class
NotStringMatcher extends AnyRef
- Definition Classes
- StringBeHaveMatchers
-
class
StringResultMatcher extends AnyRef
- Definition Classes
- StringBeHaveMatchers
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
!=/(s: String): Matcher[Any]
matches if a.toLowerCase.trim != b.toLowerCase.trim
matches if a.toLowerCase.trim != b.toLowerCase.trim
- Definition Classes
- StringBaseMatchers
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
==/(s: String): AdaptableMatcher[Any]
matches if a.toLowerCase.trim = b.toLowerCase.trim
matches if a.toLowerCase.trim = b.toLowerCase.trim
- Definition Classes
- 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
- Definition Classes
- 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
- Definition Classes
- 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
- Definition Classes
- StringBaseMatchers
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
be: NeutralMatcher[Any]
- Definition Classes
- BeHaveMatchers
-
def
beMatching(a: Regex): BeMatchingRegex
matches if b matches the regex a
matches if b matches the regex a
- Definition Classes
- StringBaseMatchers
-
def
beMatching(a: Pattern): BeMatchingPattern
matches if b matches the pattern a
matches if b matches the pattern a
- Definition Classes
- StringBaseMatchers
-
def
beMatching(a: ⇒ String): BeMatching
matches if b matches the regular expression a
matches if b matches the regular expression a
- Definition Classes
- StringBaseMatchers
-
def
be_!=/(a: String): Matcher[Any]
matches if a.toLowerCase.trim != b.toLowerCase.trim
matches if a.toLowerCase.trim != b.toLowerCase.trim
- Definition Classes
- StringBaseMatchers
-
def
be_==/(a: String): AdaptableMatcher[Any]
matches if a.toLowerCase.trim = b.toLowerCase.trim
matches if a.toLowerCase.trim = b.toLowerCase.trim
- Definition Classes
- StringBaseMatchers
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
contain(t: Char): Matcher[String]
matches if (b contains a)
matches if (b contains a)
- Definition Classes
- StringBaseMatchers
-
def
contain(t: String): Matcher[String]
matches if (b contains a)
matches if (b contains a)
- Definition Classes
- StringBaseMatchers
-
def
containing(s: String): Matcher[String]
- Definition Classes
- StringBeHaveMatchers
-
def
endWith(t: ⇒ String): Matcher[String]
matches if b.endsWith(a)
matches if b.endsWith(a)
- Definition Classes
- StringBaseMatchers
-
def
endingWith(s: ⇒ String): Matcher[String]
- Definition Classes
- StringBeHaveMatchers
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(r: Regex): FindMatcherRegex
matches if the regexp r is found inside b
matches if the regexp r is found inside b
- Definition Classes
- StringBaseMatchers
-
def
find(p: Pattern): FindMatcherPattern
matches if the pattern p is found inside b
matches if the pattern p is found inside b
- Definition Classes
- StringBaseMatchers
-
def
find(a: ⇒ String): FindMatcher
matches if the regexp a is found inside b
matches if the regexp a is found inside b
- Definition Classes
- StringBaseMatchers
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
have: NeutralMatcher[Any]
- Definition Classes
- BeHaveMatchers
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
matching(r: Regex): BeMatchingRegex
- Definition Classes
- StringBeHaveMatchers
-
def
matching(t: Pattern): BeMatchingPattern
- Definition Classes
- StringBeHaveMatchers
-
def
matching(t: ⇒ String): BeMatching
- Definition Classes
- StringBeHaveMatchers
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
not: NotMatcher[Any]
- Definition Classes
- BeHaveMatchers
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
startWith(a: String): Matcher[String]
matches if b.startsWith(a)
matches if b.startsWith(a)
- Definition Classes
- StringBaseMatchers
-
def
startingWith(s: ⇒ String): Matcher[String]
- Definition Classes
- StringBeHaveMatchers
-
implicit
def
stringMatcher(m: AdaptableMatcher[Any]): StringMatcher
adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
implicit
def
toNeutralStringMatcher(result: NeutralMatcher[Any]): NeutralStringMatcher
- Definition Classes
- StringBeHaveMatchers
-
implicit
def
toNotStringMatcher(result: NotMatcher[Any]): NotStringMatcher
- Definition Classes
- StringBeHaveMatchers
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
implicit
def
toStringResultMatcher(result: MatchResult[String]): StringResultMatcher
- Definition Classes
- StringBeHaveMatchers
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()