org.scalatest.matchers

object MatchResult

[source: org/scalatest/matchers/MatchResult.scala]

object MatchResult
extends AnyRef
Companion object for the MatchResult case class.
Author
Bill Venners
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
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.
Parameters
matches - indicates whether or not the matcher matched
failureMessage - a failure message to report if a match fails
negatedFailureMessage - a message with a meaning opposite to that of the failure message


Copyright (C) 2001-2010 Artima, Inc. All rights reserved.