org.specs2.matcher

StringMatchers

trait StringMatchers extends StringBaseMatchers with StringBeHaveMatchers

The StringMatchers trait provides matchers which are applicable to String objects

Linear Supertypes
StringBeHaveMatchers, BeHaveMatchers, StringBaseMatchers, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StringMatchers
  2. StringBeHaveMatchers
  3. BeHaveMatchers
  4. StringBaseMatchers
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. class NeutralStringMatcher extends AnyRef

    Definition Classes
    StringBeHaveMatchers
  7. class NotStringMatcher extends AnyRef

    Definition Classes
    StringBeHaveMatchers
  8. class StringResultMatcher extends AnyRef

    Definition Classes
    StringBeHaveMatchers

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. def !=/(s: String): Matcher[Any]

    matches if a.

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

    Definition Classes
    StringBaseMatchers
  4. final def ##(): Int

    Definition Classes
    AnyRef → Any
  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. def ==/(s: String): AdaptableMatcher[Any]

    matches if a.

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

    Definition Classes
    StringBaseMatchers
  8. 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
  9. 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
  10. 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
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def be: NeutralMatcher[Any]

    Definition Classes
    BeHaveMatchers
  13. def beMatching(a: Regex): BeMatchingRegex

    matches if b matches the regex a

    matches if b matches the regex a

    Definition Classes
    StringBaseMatchers
  14. def beMatching(a: Pattern): BeMatchingPattern

    matches if b matches the pattern a

    matches if b matches the pattern a

    Definition Classes
    StringBaseMatchers
  15. def beMatching(a: ⇒ String): BeMatching

    matches if b matches the regular expression a

    matches if b matches the regular expression a

    Definition Classes
    StringBaseMatchers
  16. def be_!=/(a: String): Matcher[Any]

    matches if a.

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

    Definition Classes
    StringBaseMatchers
  17. def be_==/(a: String): AdaptableMatcher[Any]

    matches if a.

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

    Definition Classes
    StringBaseMatchers
  18. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. def contain(t: Char): Matcher[String]

    matches if (b contains a)

    matches if (b contains a)

    Definition Classes
    StringBaseMatchers
  20. def contain(t: String): Matcher[String]

    matches if (b contains a)

    matches if (b contains a)

    Definition Classes
    StringBaseMatchers
  21. def containing(s: String): Matcher[String]

    Definition Classes
    StringBeHaveMatchers
  22. def endWith(t: ⇒ String): Matcher[String]

    matches if b.

    matches if b.endsWith(a)

    Definition Classes
    StringBaseMatchers
  23. def endingWith(s: ⇒ String): Matcher[String]

    Definition Classes
    StringBeHaveMatchers
  24. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  26. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. 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
  28. 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
  29. 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
  30. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  31. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  32. def have: NeutralMatcher[Any]

    Definition Classes
    BeHaveMatchers
  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. def matching(r: Regex): BeMatchingRegex

    Definition Classes
    StringBeHaveMatchers
  35. def matching(t: Pattern): BeMatchingPattern

    Definition Classes
    StringBeHaveMatchers
  36. def matching(t: ⇒ String): BeMatching

    Definition Classes
    StringBeHaveMatchers
  37. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  38. def not: NotMatcher[Any]

    Definition Classes
    BeHaveMatchers
  39. final def notify(): Unit

    Definition Classes
    AnyRef
  40. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  41. def startWith(a: String): Matcher[String]

    matches if b.

    matches if b.startsWith(a)

    Definition Classes
    StringBaseMatchers
  42. def startingWith(s: ⇒ String): Matcher[String]

    Definition Classes
    StringBeHaveMatchers
  43. implicit def stringMatcher(m: AdaptableMatcher[Any]): StringMatcher

    adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher

  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. implicit def toNeutralStringMatcher(result: NeutralMatcher[Any]): NeutralStringMatcher

    Definition Classes
    StringBeHaveMatchers
  46. implicit def toNotStringMatcher(result: NotMatcher[Any]): NotStringMatcher

    Definition Classes
    StringBeHaveMatchers
  47. def toString(): String

    Definition Classes
    AnyRef → Any
  48. implicit def toStringResultMatcher(result: MatchResult[String]): StringResultMatcher

    Definition Classes
    StringBeHaveMatchers
  49. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StringBeHaveMatchers

Inherited from BeHaveMatchers

Inherited from StringBaseMatchers

Inherited from AnyRef

Inherited from Any

Ungrouped