Packages

c

org.scalatest.words

StringVerbStringInvocation

abstract class StringVerbStringInvocation extends AnyRef

Class that provides a role-specific type for an implicit conversion used to support the registration of subject descriptions in FlatSpec and FreeSpec styles.

For example, this class enables syntax such as the following in WordSpec and fixture.WordSpec:

"A Stack (when empty)" should { ...
                       ^

This should method, which is provided in ShouldVerb, needs an implicit parameter of type StringVerbBlockRegistration.

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

Instance Constructors

  1. new StringVerbStringInvocation()

Abstract Value Members

  1. abstract def apply(subject: String, verb: String, predicate: String, pos: Position): ResultOfStringPassedToVerb

    Registers a subject description in WordSpec and fixture.WordSpec.

    Registers a subject description in WordSpec and fixture.WordSpec.

    For example, this class enables syntax such as the following in WordSpec and fixture.WordSpec:

    "A Stack (when empty)" should { ...
                           ^