ScalaTest 1.0
|
|
org/scalatest/matchers/MatchResult.scala
]
object
MatchResult
extends
AnyRefMatchResult
case class.Method Summary | |
def
|
apply
(matches : Boolean, failureMessage : java.lang.String, negatedFailureMessage : java.lang.String) : MatchResult
Factory method that constructs a new
MatchResult with passed matches , failureMessage , and
negativeFailureMessage fields. The midSentenceFailureMessage will return the same
string as failureMessage , and the midSentenceNegatedFailureMessage will return the
same string as negatedFailureMessage . |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
def
apply(matches : Boolean, failureMessage : java.lang.String, negatedFailureMessage : java.lang.String) : MatchResult
MatchResult
with passed matches
, failureMessage
, and
negativeFailureMessage
fields. The midSentenceFailureMessage
will return the same
string as failureMessage
, and the midSentenceNegatedFailureMessage
will return the
same string as negatedFailureMessage
.matches -
indicates whether or not the matcher matchedfailureMessage -
a failure message to report if a match failsnegatedFailureMessage -
a message with a meaning opposite to that of the failure message
ScalaTest 1.0
|
|