org.scalatest.matchers

object MustMatchers

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

object MustMatchers
extends MustMatchers
Companion object that facilitates the importing of MustMatchers members as an alternative to mixing it the trait. One use case is to import MustMatchers members so you can use them in the Scala interpreter:
 $scala -classpath scalatest.jar
 Welcome to Scala version 2.7.3.final (Java HotSpot(TM) Client VM, Java 1.5.0_16).
 Type in expressions to have them evaluated.
 Type :help for more information.
 
 scala> import org.scalatest.matchers.MustMatchers._
 import org.scalatest.matchers.MustMatchers._
 
 scala> 1 must equal (2)
 org.scalatest.TestFailedException: 1 did not equal 2
 	at org.scalatest.matchers.Helper$.newTestFailedException(Matchers.scala:40)
 	at org.scalatest.matchers.MustMatchers$MustMethodHelper$.mustMatcher(MustMatchers.scala:826)
 	at org.scalatest.matchers.MustMatchers$IntMustWrapper.must(MustMatchers.scala:1123)
 	at .(:9)
 	at .()
 	at RequestR...

 scala> "hello, world" must startWith ("hello")
 
 scala> 7 must (be >= (3) and not be <= (7))
 org.scalatest.TestFailedException: 7 was greater than or equal to 3, but 7 was less than or equal to 7
 	at org.scalatest.matchers.Helper$.newTestFailedException(Matchers.scala:40)
 	at org.scalatest.matchers.MustMatchers$MustMethodHelper$.mustMatcher(MustMatchers.scala:826)
 	at org.scalatest.matchers.MustMatchers$IntMustWrapper.must(MustMatchers.scala:1123)
 	at .(...
 
Author
Bill Venners
Values and Variables inherited from Matchers
not, be, have, contain, include, fullyMatch, startWith, endWith, length, size, key, value, a, an, theSameInstanceAs, regex
Methods inherited from MustMatchers
convertToEvaluatingApplicationMustWrapper, convertToAnyMustWrapper, convertToDoubleMustWrapper, convertToFloatMustWrapper, convertToLongMustWrapper, convertToIntMustWrapper, convertToShortMustWrapper, convertToByteMustWrapper, convertToAnyRefMustWrapper, convertToCollectionMustWrapper, convertToSeqMustWrapper, convertToArrayMustWrapper, convertToListMustWrapper, convertToMapMustWrapper, convertToStringMustWrapper, convertToJavaCollectionMustWrapper, convertToJavaListMustWrapper, convertToJavaMapMustWrapper, convertHasIntGetLengthMethodToLengthMustWrapper, convertHasIntGetLengthFieldToLengthMustWrapper, convertHasIntLengthFieldToLengthMustWrapper, convertHasIntLengthMethodToLengthMustWrapper, convertHasLongGetLengthMethodToLengthMustWrapper, convertHasLongGetLengthFieldToLengthMustWrapper, convertHasLongLengthFieldToLengthMustWrapper, convertHasLongLengthMethodToLengthMustWrapper, convertHasIntGetSizeMethodToSizeMustWrapper, convertHasIntGetSizeFieldToSizeMustWrapper, convertHasIntSizeFieldToSizeMustWrapper, convertHasIntSizeMethodToSizeMustWrapper, convertHasLongGetSizeMethodToSizeMustWrapper, convertHasLongGetSizeFieldToSizeMustWrapper, convertHasLongSizeFieldToSizeMustWrapper, convertHasLongSizeMethodToSizeMustWrapper
Methods inherited from Matchers
convertToMatcherWrapper, convertIterableMatcherToJavaCollectionMatcher, convertMapMatcherToJavaMapMatcher, convertLengthFieldToIntLengthWrapper, convertLengthMethodToIntLengthWrapper, convertGetLengthFieldToIntLengthWrapper, convertGetLengthMethodToIntLengthWrapper, convertLengthFieldToLongLengthWrapper, convertLengthMethodToLongLengthWrapper, convertGetLengthFieldToLongLengthWrapper, convertGetLengthMethodToLongLengthWrapper, convertSizeFieldToIntSizeWrapper, convertSizeMethodToIntSizeWrapper, convertGetSizeFieldToIntSizeWrapper, convertGetSizeMethodToIntSizeWrapper, convertSizeFieldToLongSizeWrapper, convertSizeMethodToLongSizeWrapper, convertGetSizeFieldToLongSizeWrapper, convertGetSizeMethodToLongSizeWrapper, convertSymbolToHavePropertyMatcherGenerator, equal, convertDoubleToPlusOrMinusWrapper, convertFloatToPlusOrMinusWrapper, convertLongToPlusOrMinusWrapper, convertIntToPlusOrMinusWrapper, convertShortToPlusOrMinusWrapper, convertByteToPlusOrMinusWrapper, <, >, <=, >=, ===, evaluating, produce
Methods inherited from Assertions
assert, assert, assert, assert, convertToEqualizer, intercept, expect, expect, fail, fail, fail, fail
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

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