Class

org.specs2.matcher

AndMatch

Related Doc: package matcher

Permalink

class AndMatch[T] extends MatchResult[T]

Linear Supertypes
MatchResult[T], ResultLike, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AndMatch
  2. MatchResult
  3. ResultLike
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(matcher: Matcher[T]): MatchResult[T]

    Permalink

    apply a Matcher to the expectable contained in that MatchResult.

    apply a Matcher to the expectable contained in that MatchResult. Depending on the exact type of the MatchResult, that logic may vary.

    Note: this method is marked as "private" to give a clue to the user when semi-column inference fails to apply.

    For example in that case:

    "string" must not beNull 1 must_== 1

    There will be a compilation error as if the apply method was used between the first and second line: ("string" must not beNull).apply(1)

    For a more detailed explanation, see: http://bit.ly/12STc95

    Definition Classes
    AndMatchMatchResult
  5. def applyMatcher(m: Matcher[T]): MatchResult[T]

    Permalink

    alias for the apply method, to be used outside specs2

    alias for the apply method, to be used outside specs2

    Definition Classes
    MatchResult
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def be[S >: T <: AnyRef](s: S): MatchResult[S]

    Permalink
    Definition Classes
    MatchResult
  8. def be(m: Matcher[T]): MatchResult[T]

    Permalink

    apply the matcher

    apply the matcher

    Definition Classes
    MatchResult
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def evaluate[S >: T]: MatchResult[S]

    Permalink

    the value being matched

    the value being matched

    Definition Classes
    AndMatchMatchResult
  13. val expectable: Expectable[T]

    Permalink

    the value being matched

    the value being matched

    Definition Classes
    AndMatchMatchResult
  14. def filterTrace(f: (List[StackTraceElement]) ⇒ List[StackTraceElement]): MatchResult[T]

    Permalink

    filter the trace of this result (if there is one)

    filter the trace of this result (if there is one)

    Definition Classes
    MatchResult
  15. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. def have(m: Matcher[T]): MatchResult[T]

    Permalink

    apply the matcher

    apply the matcher

    Definition Classes
    MatchResult
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def isSuccess: Boolean

    Permalink
    Definition Classes
    MatchResult
  20. lazy val m1: MatchResult[T]

    Permalink
  21. lazy val m2: MatchResult[T]

    Permalink
  22. def message: String

    Permalink
    Definition Classes
    MatchResult
  23. def mute: MatchResult[T]

    Permalink

    returns

    the MatchResult with no messages

    Definition Classes
    MatchResult
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. def negate: MatchResult[T]

    Permalink

    returns

    the negation of this result

    Definition Classes
    AndMatchMatchResult
  26. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  28. def orSkip: MatchResult[T]

    Permalink
    Definition Classes
    MatchResult
  29. def orThrow: MatchResult[T]

    Permalink
    Definition Classes
    MatchResult
  30. def setExpectable[S >: T](e: Expectable[S]): MatchResult[S]

    Permalink

    set a different expectable for this matcher

    set a different expectable for this matcher

    Definition Classes
    AndMatchMatchResult
  31. def setMessage(message: String): MatchResult[T]

    Permalink

    set a new failure message on this match result

    set a new failure message on this match result

    Definition Classes
    MatchResult
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toResult: Result

    Permalink
    Definition Classes
    AndMatchMatchResult → ResultLike
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. def updateMessage(f: (String) ⇒ String): MatchResult[T]

    Permalink

    update the failure message of this match result

    update the failure message of this match result

    Definition Classes
    MatchResult
  36. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. 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 MatchResult[T]

Inherited from ResultLike

Inherited from AnyRef

Inherited from Any

Ungrouped