Packages

c

org.scalatest.words

ResultOfContainWord

class ResultOfContainWord[L] extends AnyRef

This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

Source
ResultOfContainWord.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResultOfContainWord
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResultOfContainWord(left: L, shouldBeTrue: Boolean, prettifier: Prettifier, pos: Position)

Value Members

  1. def allElementsOf[R](elements: GenTraversable[R])(implicit aggregating: Aggregating[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain allElementsOf (1, 2)
                      ^
    

  2. def allOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit aggregating: Aggregating[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain allOf (1, 2)
                      ^
    

  3. def atLeastOneElementOf(elements: GenTraversable[Any])(implicit aggregating: Aggregating[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain atLeastOneElementOf List(1, 2)
                      ^
    

  4. def atLeastOneOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit aggregating: Aggregating[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain atLeastOneOf (1, 2)
                      ^
    

  5. def atMostOneElementOf[R](elements: GenTraversable[R])(implicit aggregating: Aggregating[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain atMostOneElementOf (1, 2)
                      ^
    

  6. def atMostOneOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit aggregating: Aggregating[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain atMostOneOf (1, 2)
                      ^
    

  7. def inOrder(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit sequencing: Sequencing[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain inOrder (1, 2)
                      ^
    

  8. def inOrderElementsOf[R](elements: GenTraversable[R])(implicit sequencing: Sequencing[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain inOrderElementsOf List(1, 2)
                      ^
    

  9. def inOrderOnly(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit sequencing: Sequencing[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain inOrderOnly (1, 2)
                      ^
    

  10. def key(expectedKey: Any)(implicit keyMapping: KeyMapping[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    map should contain key ("one")
                       ^
    

  11. def noElementsOf(elements: GenTraversable[Any])(implicit containing: Containing[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain noElementsOf List(1, 2)
                      ^
    

  12. def noneOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit containing: Containing[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain noneOf (1, 2)
                      ^
    

  13. def oneElementOf(elements: GenTraversable[Any])(implicit containing: Containing[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain oneElementOf List(1, 2)
                      ^
    

  14. def oneOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit containing: Containing[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain oneOf (1, 2)
                      ^
    

  15. def only(right: Any*)(implicit aggregating: Aggregating[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain only (1, 2)
                      ^
    

  16. def theSameElementsAs(right: GenTraversable[_])(implicit aggregating: Aggregating[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain theSameElementsAs (List(1, 2))
                      ^
    

  17. def theSameElementsInOrderAs(right: GenTraversable[_])(implicit sequencing: Sequencing[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    xs should contain theSameElementsInOrderAs (List(1, 2))
                      ^
    

  18. def toString(): String
    Definition Classes
    ResultOfContainWord → AnyRef → Any
  19. def value(expectedValue: Any)(implicit valueMapping: ValueMapping[L]): Assertion

    This method enables the following syntax:

    This method enables the following syntax:

    map should contain value ("one")
                       ^