Object/Trait

org.specs2.matcher

StringMatchers

Related Docs: trait StringMatchers | package matcher

Permalink

object StringMatchers extends StringMatchers

Linear Supertypes
StringMatchers, StringBeHaveMatchers, BeHaveMatchers, StringBaseMatchers, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StringMatchers
  2. StringMatchers
  3. StringBeHaveMatchers
  4. BeHaveMatchers
  5. StringBaseMatchers
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class FindMatcher extends Matcher[String]

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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]

    Permalink

    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

    Permalink
    Definition Classes
    StringBeHaveMatchers
  7. class NotStringMatcher extends AnyRef

    Permalink
    Definition Classes
    StringBeHaveMatchers
  8. class StringResultMatcher extends AnyRef

    Permalink
    Definition Classes
    StringBeHaveMatchers

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !=/(s: String): Matcher[Any]

    Permalink

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  5. def ==/(s: String): AdaptableMatcher[Any]

    Permalink

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

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

    Definition Classes
    StringBaseMatchers
  6. def =~(r: Regex): BeMatchingRegex

    Permalink

    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
  7. def =~(p: Pattern): BeMatchingPattern

    Permalink

    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
  8. def =~(t: ⇒ String): BeMatching

    Permalink

    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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def be: NeutralMatcher[Any]

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

    Permalink

    matches if b matches the regex a

    matches if b matches the regex a

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

    Permalink

    matches if b matches the pattern a

    matches if b matches the pattern a

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

    Permalink

    matches if b matches the regular expression a

    matches if b matches the regular expression a

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

    Permalink

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

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

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

    Permalink

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

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

    Definition Classes
    StringBaseMatchers
  16. def clone(): AnyRef

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

    Permalink

    matches if (b contains a)

    matches if (b contains a)

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

    Permalink

    matches if (b contains a)

    matches if (b contains a)

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

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

    Permalink

    matches if b.endsWith(a)

    matches if b.endsWith(a)

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. def find(r: Regex): FindMatcherRegex

    Permalink

    matches if the regexp r is found inside b

    matches if the regexp r is found inside b

    Definition Classes
    StringBaseMatchers
  25. def find(p: Pattern): FindMatcherPattern

    Permalink

    matches if the pattern p is found inside b

    matches if the pattern p is found inside b

    Definition Classes
    StringBaseMatchers
  26. def find(a: ⇒ String): FindMatcher

    Permalink

    matches if the regexp a is found inside b

    matches if the regexp a is found inside b

    Definition Classes
    StringBaseMatchers
  27. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  28. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  29. def have: NeutralMatcher[Any]

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  35. def not: NotMatcher[Any]

    Permalink
    Definition Classes
    BeHaveMatchers
  36. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  37. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  38. def startWith(a: String): Matcher[String]

    Permalink

    matches if b.startsWith(a)

    matches if b.startsWith(a)

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

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

    Permalink

    adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher

    adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher

    Definition Classes
    StringMatchers
  41. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Permalink
    Definition Classes
    StringBeHaveMatchers
  44. def toString(): String

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

    Permalink
    Definition Classes
    StringBeHaveMatchers
  46. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from StringMatchers

Inherited from StringBeHaveMatchers

Inherited from BeHaveMatchers

Inherited from StringBaseMatchers

Inherited from AnyRef

Inherited from Any

Ungrouped