org.scalatest.junit

MustMatchersForJUnit

trait MustMatchersForJUnit extends MustMatchers with AssertionsForJUnit

Trait that makes ScalaTest's MustMatchers DSL syntax available for use with JUnit.

The assertion methods provided in this trait look and behave exactly like the ones inMustMatchers, except instead of throwingTestFailedException they throwJUnitTestFailedError, which extends junit.framework.AssertionFailedError.

JUnit 3 (release 3.8 and earlier) distinguishes between failures and errors. If a test fails because of a failed assertion, that is considered a failure. If a test fails for any other reason, either the test code or the application being tested threw an unexpected exception, that is considered an error. The way JUnit 3 decides whether an exception represents a failure or error is that only thrown junit.framework.AssertionFailedErrors are considered failures. Any other exception type is considered an error. The exception type thrown by the JUnit 3 assertion methods declared in junit.framework.Assert (such as assertEquals,assertTrue, and fail) is, therefore, AssertionFailedError.

In JUnit 4, AssertionFailedError was made to extend java.lang.AssertionError, and the distinction between failures and errors was essentially dropped. However, some tools that integrate with JUnit carry on this distinction, so even if you are using JUnit 4 you may want to use thisMustMatchersForJUnit trait instead of plain-old ScalaTestMustMatchers.

To use this trait in a JUnit 3 TestCase, you can mix it into your TestCase class, like this:

import junit.framework.TestCase
import org.scalatest.junit.MustMatchersForJUnit

class MyTestCase extends TestCase with MustMatchersForJUnit {

def testSomething() { "hello, world!" must startWith ("hello") }

// ... }

You can alternatively import the methods defined in this trait.

import junit.framework.TestCase
import org.scalatest.junit.MustMatchersForJUnit._

class MyTestCase extends TestCase {

def testSomething() { "hello, world!" must startWith ("hello") }

// ... }

For details on the importing approach, see the documentation for the MustMatchersForJUnit companion object. For the details on the MustMatchersForJUnit syntax, see the Scaladoc documentation fororg.scalatest.matchers.MustMatchers

go to: companion
known subclasses: MustMatchersForJUnit
    authors:
  1. Bill Venners

Inherited
  1. Hide All
  2. Show all
  1. AssertionsForJUnit
  2. MustMatchers
  3. MustVerb
  4. Matchers
  5. Assertions
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Type Members

  1. class AWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  2. class AnWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  3. class AnyMustWrapper[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  4. class AnyRefMustWrapper[T <: AnyRef] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  5. class ArrayMustWrapper[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  6. class BeWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  7. class ByteMustWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  8. class BytePlusOrMinusWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  9. class ByteTolerance(right: Byte, tolerance: Byte) extends Product

    This class is part of the ScalaTest matchers DSL.

  10. class CollectionMustWrapper[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  11. class ContainWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  12. class DoubleMustWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  13. class DoublePlusOrMinusWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  14. class DoubleTolerance(right: Double, tolerance: Double) extends Product

    This class is part of the ScalaTest matchers DSL.

  15. class EndWithWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  16. class Equalizer extends AnyRef

    Class used via an implicit conversion to enable any two objects to be compared with=== in assertions in tests.

  17. class EvaluatingApplicationMustWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  18. class FloatMustWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  19. class FloatPlusOrMinusWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  20. class FloatTolerance(right: Float, tolerance: Float) extends Product

    This class is part of the ScalaTest matchers DSL.

  21. class FullyMatchWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  22. class HavePropertyMatcherGenerator extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  23. class HaveWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  24. class IncludeWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  25. class IntMustWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  26. class IntPlusOrMinusWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  27. class IntTolerance(right: Int, tolerance: Int) extends Product

    This class is part of the ScalaTest matchers DSL.

  28. class JavaCollectionMustWrapper[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  29. class JavaListMustWrapper[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  30. class JavaMapMustWrapper[K, V] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  31. class KeyWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  32. class LengthMustWrapper[A <: AnyRef] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  33. class LengthWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  34. class LengthWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  35. class ListMustWrapper[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  36. class LongMustWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  37. class LongPlusOrMinusWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  38. class LongTolerance(right: Long, tolerance: Long) extends Product

    This class is part of the ScalaTest matchers DSL.

  39. class MapMustWrapper[K, V] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  40. class MatcherWrapper[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  41. class NotWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  42. class RegexWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  43. class ResultOfAWordToBePropertyMatcherApplication[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  44. class ResultOfAWordToSymbolApplication extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  45. class ResultOfAnWordToBePropertyMatcherApplication[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  46. class ResultOfAnWordToSymbolApplication extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  47. class ResultOfBeWordForAnyRef[T <: AnyRef] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  48. class ResultOfContainWordForJavaMap[K, V] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  49. class ResultOfContainWordForMap[K, V] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  50. class ResultOfElementWordApplication[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  51. class ResultOfEndWithWordForString extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  52. class ResultOfEvaluatingApplication extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  53. class ResultOfFullyMatchWordForString extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  54. class ResultOfGreaterThanComparison[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  55. class ResultOfGreaterThanOrEqualToComparison[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  56. class ResultOfHaveWordForArray[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  57. class ResultOfHaveWordForCollection[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  58. class ResultOfHaveWordForJavaCollection[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  59. class ResultOfHaveWordForJavaList[T] extends ResultOfHaveWordForJavaCollection[T]

    This class is part of the ScalaTest matchers DSL.

  60. class ResultOfHaveWordForJavaMap extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  61. class ResultOfHaveWordForLengthWrapper[A] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  62. class ResultOfHaveWordForSeq[T] extends ResultOfHaveWordForCollection[T]

    This class is part of the ScalaTest matchers DSL.

  63. class ResultOfHaveWordForSizeWrapper[A] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  64. class ResultOfHaveWordForString extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  65. class ResultOfIncludeWordForString extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  66. class ResultOfKeyWordApplication[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  67. class ResultOfLengthWordApplication extends HavePropertyMatcher[AnyRef, Long]

    This class is part of the ScalaTest matchers DSL.

  68. class ResultOfLessThanComparison[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  69. class ResultOfLessThanOrEqualToComparison[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  70. class ResultOfNotWord[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  71. class ResultOfNotWordForAnyRef[T <: AnyRef] extends ResultOfNotWord[T]

    This class is part of the ScalaTest matchers DSL.

  72. class ResultOfNotWordForArray[E] extends ResultOfNotWordForAnyRef[Array[E]]

    This class is part of the ScalaTest matchers DSL.

  73. class ResultOfNotWordForByte extends ResultOfNotWord[Byte]

    This class is part of the ScalaTest matchers DSL.

  74. class ResultOfNotWordForCollection[E, T <: Iterable[E]] extends ResultOfNotWordForIterable[E, T]

    This class is part of the ScalaTest matchers DSL.

  75. class ResultOfNotWordForDouble extends ResultOfNotWord[Double]

    This class is part of the ScalaTest matchers DSL.

  76. class ResultOfNotWordForFloat extends ResultOfNotWord[Float]

    This class is part of the ScalaTest matchers DSL.

  77. class ResultOfNotWordForInt extends ResultOfNotWord[Int]

    This class is part of the ScalaTest matchers DSL.

  78. class ResultOfNotWordForIterable[E, T <: Iterable[E]] extends ResultOfNotWordForAnyRef[T]

    This class is part of the ScalaTest matchers DSL.

  79. class ResultOfNotWordForJavaCollection[E, T <: Collection[E]] extends ResultOfNotWordForAnyRef[T]

    This class is part of the ScalaTest matchers DSL.

  80. class ResultOfNotWordForJavaList[E, T <: List[E]] extends ResultOfNotWordForJavaCollection[E, T]

    This class is part of the ScalaTest matchers DSL.

  81. class ResultOfNotWordForJavaMap[K, V] extends ResultOfNotWordForAnyRef[Map[K, V]]

    This class is part of the ScalaTest matchers DSL.

  82. class ResultOfNotWordForLengthWrapper[A <: AnyRef] extends ResultOfNotWordForAnyRef[A]

    This class is part of the ScalaTest matchers DSL.

  83. class ResultOfNotWordForLong extends ResultOfNotWord[Long]

    This class is part of the ScalaTest matchers DSL.

  84. class ResultOfNotWordForMap[K, V] extends ResultOfNotWordForCollection[(K, V), Map[K, V]]

    This class is part of the ScalaTest matchers DSL.

  85. class ResultOfNotWordForSeq[E, T <: Seq[E]] extends ResultOfNotWordForCollection[E, T]

    This class is part of the ScalaTest matchers DSL.

  86. class ResultOfNotWordForShort extends ResultOfNotWord[Short]

    This class is part of the ScalaTest matchers DSL.

  87. class ResultOfNotWordForSizeWrapper[A <: AnyRef] extends ResultOfNotWordForAnyRef[A]

    This class is part of the ScalaTest matchers DSL.

  88. class ResultOfNotWordForString extends ResultOfNotWordForAnyRef[String]

    This class is part of the ScalaTest matchers DSL.

  89. class ResultOfProduceInvocation[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  90. class ResultOfRegexWordApplication extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  91. class ResultOfSizeWordApplication extends HavePropertyMatcher[AnyRef, Long]

    This class is part of the ScalaTest matchers DSL.

  92. class ResultOfStartWithWordForString extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  93. class ResultOfTheSameInstanceAsApplication extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  94. class ResultOfTripleEqualsApplication extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  95. class ResultOfValueWordApplication[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  96. class SeqMustWrapper[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  97. class ShortMustWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  98. class ShortPlusOrMinusWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  99. class ShortTolerance(right: Short, tolerance: Short) extends Product

    This class is part of the ScalaTest matchers DSL.

  100. class SizeMustWrapper[A <: AnyRef] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  101. class SizeWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  102. class SizeWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  103. class StartWithWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  104. class StringMustWrapper extends StringMustWrapperForVerb

    This class is part of the ScalaTest matchers DSL.

  105. class StringMustWrapperForVerb extends AnyRef

    This class supports the syntax of FlatSpec, WordSpec, FixtureFlatSpec, and FixtureWordSpec.

  106. class TheSameInstanceAsPhrase extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  107. class ValueWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def <[T](right: T)(implicit arg0: (T) ⇒ Ordered[T]): ResultOfLessThanComparison[T]

    This method enables the following syntax:

  7. def <=[T](right: T)(implicit arg0: (T) ⇒ Ordered[T]): ResultOfLessThanOrEqualToComparison[T]

    This method enables the following syntax:

  8. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  9. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  10. def ===(right: Any): ResultOfTripleEqualsApplication

    This method enables the following syntax:

  11. def >[T](right: T)(implicit arg0: (T) ⇒ Ordered[T]): ResultOfGreaterThanComparison[T]

    This method enables the following syntax:

  12. def >=[T](right: T)(implicit arg0: (T) ⇒ Ordered[T]): ResultOfGreaterThanOrEqualToComparison[T]

    This method enables the following syntax:

  13. val a: AWord

    This field enables the following syntax:

  14. val an: AnWord

    This field enables the following syntax:

  15. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  16. def assert(o: Option[String]): Unit

    Assert that an Option[String] is None.

  17. def assert(o: Option[String], clue: Any): Unit

    Assert that an Option[String] is None.

  18. def assert(condition: Boolean, clue: Any): Unit

    Assert that a boolean condition, described in Stringmessage, is true.

  19. def assert(condition: Boolean): Unit

    Assert that a boolean condition is true.

  20. val be: BeWord

    This method enables syntax such as the following:

  21. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  22. val contain: ContainWord

    This method enables syntax such as the following:

  23. implicit def convertByteToPlusOrMinusWrapper(right: Byte): BytePlusOrMinusWrapper

    Implicitly converts an object of type Byte to a BytePlusOrMinusWrapper, to enable a plusOrMinus method to be invokable on that object.

  24. implicit def convertDoubleToPlusOrMinusWrapper(right: Double): DoublePlusOrMinusWrapper

    Implicitly converts an object of type Double to a DoublePlusOrMinusWrapper, to enable a plusOrMinus method to be invokable on that object.

  25. implicit def convertFloatToPlusOrMinusWrapper(right: Float): FloatPlusOrMinusWrapper

    Implicitly converts an object of type Float to a FloatPlusOrMinusWrapper, to enable a plusOrMinus method to be invokable on that object.

  26. implicit def convertGetLengthFieldToIntLengthWrapper(o: AnyRef {...}): LengthWrapper

    This implicit conversion method converts an object with a getLength field of type Int to aLengthWrapper, to enable that object to be used with the have length (7) syntax.

  27. implicit def convertGetLengthFieldToLongLengthWrapper(o: AnyRef {...}): LengthWrapper

    This implicit conversion method converts an object with a getLength field of type Long to aLengthWrapper, to enable that object to be used with the have length (7) syntax.

  28. implicit def convertGetLengthMethodToIntLengthWrapper(o: AnyRef {...}): LengthWrapper

    This implicit conversion method converts an object with a getLength method of type Int to aLengthWrapper, to enable that object to be used with the have length (7) syntax.

  29. implicit def convertGetLengthMethodToLongLengthWrapper(o: AnyRef {...}): LengthWrapper

    This implicit conversion method converts an object with a getLength method of type Long to aLengthWrapper, to enable that object to be used with the have length (7) syntax.

  30. implicit def convertGetSizeFieldToIntSizeWrapper(o: AnyRef {...}): SizeWrapper

    This implicit conversion method converts an object with a getSize field of type Int to aLengthWrapper, to enable that object to be used with the have size (7) syntax.

  31. implicit def convertGetSizeFieldToLongSizeWrapper(o: AnyRef {...}): SizeWrapper

    This implicit conversion method converts an object with a getSize field of type Long to aLengthWrapper, to enable that object to be used with the have size (7) syntax.

  32. implicit def convertGetSizeMethodToIntSizeWrapper(o: AnyRef {...}): SizeWrapper

    This implicit conversion method converts an object with a getSize method of type Int to aLengthWrapper, to enable that object to be used with the have size (7) syntax.

  33. implicit def convertGetSizeMethodToLongSizeWrapper(o: AnyRef {...}): SizeWrapper

    This implicit conversion method converts an object with a getSize method of type Long to aLengthWrapper, to enable that object to be used with the have size (7) syntax.

  34. implicit def convertHasIntGetLengthFieldToLengthMustWrapper[T <: AnyRef {...}](o: T): LengthMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a getLength val of type Intto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  35. implicit def convertHasIntGetLengthMethodToLengthMustWrapper[T <: AnyRef {...}](o: T): LengthMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a getLength method that results in Intto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  36. implicit def convertHasIntGetSizeFieldToSizeMustWrapper[T <: AnyRef {...}](o: T): SizeMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a getSize val of type Intto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  37. implicit def convertHasIntGetSizeMethodToSizeMustWrapper[T <: AnyRef {...}](o: T): SizeMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a getSize method that results in Intto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  38. implicit def convertHasIntLengthFieldToLengthMustWrapper[T <: AnyRef {...}](o: T): LengthMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a length val of type Intto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  39. implicit def convertHasIntLengthMethodToLengthMustWrapper[T <: AnyRef {...}](o: T): LengthMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a length method that results in Intto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  40. implicit def convertHasIntSizeFieldToSizeMustWrapper[T <: AnyRef {...}](o: T): SizeMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a size val of type Intto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  41. implicit def convertHasIntSizeMethodToSizeMustWrapper[T <: AnyRef {...}](o: T): SizeMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a size method that results in Intto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  42. implicit def convertHasLongGetLengthFieldToLengthMustWrapper[T <: AnyRef {...}](o: T): LengthMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a getLength val of type Longto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  43. implicit def convertHasLongGetLengthMethodToLengthMustWrapper[T <: AnyRef {...}](o: T): LengthMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a getLength method that results in Longto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  44. implicit def convertHasLongGetSizeFieldToSizeMustWrapper[T <: AnyRef {...}](o: T): SizeMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a getSize val of type Longto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  45. implicit def convertHasLongGetSizeMethodToSizeMustWrapper[T <: AnyRef {...}](o: T): SizeMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a getSize method that results in Longto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  46. implicit def convertHasLongLengthFieldToLengthMustWrapper[T <: AnyRef {...}](o: T): LengthMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a length val of type Longto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  47. implicit def convertHasLongLengthMethodToLengthMustWrapper[T <: AnyRef {...}](o: T): LengthMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a length method that results in Longto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  48. implicit def convertHasLongSizeFieldToSizeMustWrapper[T <: AnyRef {...}](o: T): SizeMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a size val type Longto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  49. implicit def convertHasLongSizeMethodToSizeMustWrapper[T <: AnyRef {...}](o: T): SizeMustWrapper[T]

    Implicitly converts an AnyRef of type T whose structure includes a size method that results in Longto a SizeMustWrapper[T], to enable must methods to be invokable on that object.

  50. implicit def convertIntToPlusOrMinusWrapper(right: Int): IntPlusOrMinusWrapper

    Implicitly converts an object of type Int to a IntPlusOrMinusWrapper, to enable a plusOrMinus method to be invokable on that object.

  51. implicit def convertIterableMatcherToArraytMatcher[T](iterableMatcher: Matcher[Iterable[T]]): Matcher[Array[T]]

  52. implicit def convertIterableMatcherToJavaCollectionMatcher[T](iterableMatcher: Matcher[Iterable[T]]): Matcher[Collection[T]]

    This implicit conversion method enables the following syntax (javaColl is a java.

  53. implicit def convertLengthFieldToIntLengthWrapper(o: AnyRef {...}): LengthWrapper

    This implicit conversion method converts an object with a length field of type Int to aLengthWrapper, to enable that object to be used with the have length (7) syntax.

  54. implicit def convertLengthFieldToLongLengthWrapper(o: AnyRef {...}): LengthWrapper

    This implicit conversion method converts an object with a length field of type Long to aLengthWrapper, to enable that object to be used with the have length (7) syntax.

  55. implicit def convertLengthMethodToIntLengthWrapper(o: AnyRef {...}): LengthWrapper

    This implicit conversion method converts an object with a length method of type Int to aLengthWrapper, to enable that object to be used with the have length (7) syntax.

  56. implicit def convertLengthMethodToLongLengthWrapper(o: AnyRef {...}): LengthWrapper

    This implicit conversion method converts an object with a length method of type Long to aLengthWrapper, to enable that object to be used with the have length (7) syntax.

  57. implicit def convertLongToPlusOrMinusWrapper(right: Long): LongPlusOrMinusWrapper

    Implicitly converts an object of type Long to a LongPlusOrMinusWrapper, to enable a plusOrMinus method to be invokable on that object.

  58. implicit def convertMapMatcherToJavaMapMatcher[K, V](mapMatcher: Matcher[Map[K, V]]): Matcher[Map[K, V]]

    This implicit conversion method enables the following syntax (javaMap is a java.

  59. implicit def convertShortToPlusOrMinusWrapper(right: Short): ShortPlusOrMinusWrapper

    Implicitly converts an object of type Short to a ShortPlusOrMinusWrapper, to enable a plusOrMinus method to be invokable on that object.

  60. implicit def convertSizeFieldToIntSizeWrapper(o: AnyRef {...}): SizeWrapper

    This implicit conversion method converts an object with a size field of type Int to aLengthWrapper, to enable that object to be used with the have size (7) syntax.

  61. implicit def convertSizeFieldToLongSizeWrapper(o: AnyRef {...}): SizeWrapper

    This implicit conversion method converts an object with a size field of type Long to aLengthWrapper, to enable that object to be used with the have size (7) syntax.

  62. implicit def convertSizeMethodToIntSizeWrapper(o: AnyRef {...}): SizeWrapper

    This implicit conversion method converts an object with a size method of type Int to aLengthWrapper, to enable that object to be used with the have size (7) syntax.

  63. implicit def convertSizeMethodToLongSizeWrapper(o: AnyRef {...}): SizeWrapper

    This implicit conversion method converts an object with a size method of type Long to aLengthWrapper, to enable that object to be used with the have size (7) syntax.

  64. implicit def convertSymbolToHavePropertyMatcherGenerator(symbol: Symbol): HavePropertyMatcherGenerator

    This implicit conversion method converts a Symbol to aHavePropertyMatcherGenerator, to enable the symbol to be used with the have ('author ("Dickens")) syntax.

  65. implicit def convertToAnyMustWrapper[T](o: T): AnyMustWrapper[T]

    Implicitly converts an object of type T to a AnyMustWrapper[T], to enable must methods to be invokable on that object.

  66. implicit def convertToAnyRefMustWrapper[T <: AnyRef](o: T): AnyRefMustWrapper[T]

    Implicitly converts a scala.

  67. implicit def convertToArrayMustWrapper[T](o: Array[T]): ArrayMustWrapper[T]

    Implicitly converts an object of type scala.

  68. implicit def convertToByteMustWrapper(o: Byte): ByteMustWrapper

    Implicitly converts an object of type scala.

  69. implicit def convertToCollectionMustWrapper[T](o: Iterable[T]): CollectionMustWrapper[T]

    Implicitly converts an object of type scala.

  70. implicit def convertToDoubleMustWrapper(o: Double): DoubleMustWrapper

    Implicitly converts an object of type scala.

  71. implicit def convertToEqualizer(left: Any): Equalizer

    Implicit conversion from Any to Equalizer, used to enable assertions with === comparisons.

  72. implicit def convertToEvaluatingApplicationMustWrapper(o: ResultOfEvaluatingApplication): EvaluatingApplicationMustWrapper

    Implicitly converts an object of type T to a EvaluatingApplicationMustWrapper[T], to enable must methods to be invokable on that object.

  73. implicit def convertToFloatMustWrapper(o: Float): FloatMustWrapper

    Implicitly converts an object of type scala.

  74. implicit def convertToIntMustWrapper(o: Int): IntMustWrapper

    Implicitly converts an object of type scala.

  75. implicit def convertToJavaCollectionMustWrapper[T](o: Collection[T]): JavaCollectionMustWrapper[T]

    Implicitly converts an object of type java.

  76. implicit def convertToJavaListMustWrapper[T](o: List[T]): JavaListMustWrapper[T]

    Implicitly converts an object of type java.

  77. implicit def convertToJavaMapMustWrapper[K, V](o: Map[K, V]): JavaMapMustWrapper[K, V]

    Implicitly converts an object of type java.

  78. implicit def convertToListMustWrapper[T](o: List[T]): ListMustWrapper[T]

    Implicitly converts an object of type scala.

  79. implicit def convertToLongMustWrapper(o: Long): LongMustWrapper

    Implicitly converts an object of type scala.

  80. implicit def convertToMapMustWrapper[K, V](o: Map[K, V]): MapMustWrapper[K, V]

    Implicitly converts an object of type scala.

  81. implicit def convertToMatcherWrapper[T](leftMatcher: Matcher[T]): MatcherWrapper[T]

    This implicit conversion method enables ScalaTest matchers expressions that involve and and or.

  82. implicit def convertToSeqMustWrapper[T](o: Seq[T]): SeqMustWrapper[T]

    Implicitly converts an object of type scala.

  83. implicit def convertToShortMustWrapper(o: Short): ShortMustWrapper

    Implicitly converts an object of type scala.

  84. implicit def convertToStringMustWrapper(o: String): StringMustWrapper

    Implicitly converts an object of type java.

  85. val endWith: EndWithWord

    This method enables syntax such as the following:

  86. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  87. def equal(right: Any): Matcher[Any]

    This method enables the following syntax:

  88. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

  89. def evaluating(fun: ⇒ Any): ResultOfEvaluatingApplication

    This method enables syntax such as the following:

  90. def expect(expected: Any)(actual: Any): Unit

    Expect that the value passed as expected equals the value passed as actual.

  91. def expect(expected: Any, clue: Any)(actual: Any): Unit

    Expect that the value passed as expected equals the value passed as actual.

  92. def fail(cause: Throwable): Nothing

    Throws TestFailedException, with the passedThrowable cause, to indicate a test failed.

  93. def fail(message: String, cause: Throwable): Nothing

    Throws TestFailedException, with the passedString message as the exception's detail message and Throwable cause, to indicate a test failed.

  94. def fail(message: String): Nothing

    Throws TestFailedException, with the passedString message as the exception's detail message, to indicate a test failed.

  95. def fail(): Nothing

    Throws TestFailedException to indicate a test failed.

  96. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  97. val fullyMatch: FullyMatchWord

    This method enables syntax such as the following:

  98. def getClass(): java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  99. def hashCode(): Int

    Returns a hash code value for the object.

  100. val have: HaveWord

    This method enables syntax such as the following:

  101. val include: IncludeWord

    This method enables syntax such as the following:

  102. def intercept[T <: AnyRef](f: ⇒ Any)(implicit manifest: Manifest[T]): T

    Intercept and return an exception that's expected to be thrown by the passed function value.

  103. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  104. val key: KeyWord

    This field enables the following syntax:

  105. val length: LengthWord

    This field enables the following syntax:

  106. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  107. val not: NotWord

    This field enables syntax like the following:

  108. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  109. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  110. def produce[T](implicit manifest: Manifest[T]): ResultOfProduceInvocation[T]

    This method enables the following syntax:

  111. val regex: RegexWord

    This field enables the following syntax:

  112. val size: SizeWord

    This field enables the following syntax:

  113. val startWith: StartWithWord

    This method enables syntax such as the following:

  114. def synchronized[T0](arg0: T0): T0

  115. val theSameInstanceAs: TheSameInstanceAsPhrase

    This field enables the following syntax:

  116. def toString(): String

    Returns a string representation of the object.

  117. val value: ValueWord

    This field enables the following syntax:

  118. def wait(): Unit

  119. def wait(arg0: Long, arg1: Int): Unit

  120. def wait(arg0: Long): Unit

  121. def withClue(clue: Any)(fun: ⇒ Unit): Unit

    Executes the block of code passed as the second parameter, and, if it completes abruptly with a ModifiableMessage exception, prepends the "clue" string passed as the first parameter to the beginning of the detail message of that thrown exception, then rethrows it.