Packages

trait Command[S, I, O] extends CommandIO[S]

The specification for the expected behaviour of an Action.

Linear Supertypes
CommandIO[S], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Command
  2. CommandIO
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Input = I
    Definition Classes
    CommandCommandIO
  2. type Output = O
    Definition Classes
    CommandCommandIO

Abstract Value Members

  1. abstract def ensure(env: Environment, before: S, after: S, i: Input, o: Output): core.Result

    A post-condition for a command that must be verified for the command to be considered a success.

  2. abstract def execute(env: Environment, s: Input): Either[String, Output]

    Executes a command using the arguments generated by gen.

  3. abstract def gen(s: S): Option[GenT[Input]]

    A generator which provides random arguments for a command.

    A generator which provides random arguments for a command. If the command cannot be executed in the current state, it should return None.

  4. abstract def update(s0: S, i: Input, o: Var[Output]): S

    Updates the model state, given the input and output of the command.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  6. final def command: Command[S, Input, Output]
    Definition Classes
    CommandCommandIO
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  15. def renderInput(i: Input): String

    Render the input for displaying in test output.

    Render the input for displaying in test output.

    The default is to use toString, but optionally can support being overridden.

  16. def require(s: S, i: Input): Boolean

    A pre-condition for a command that must be verified before the command can be executed.

    A pre-condition for a command that must be verified before the command can be executed. This is mainly used during shrinking to ensure that it is still OK to run a command despite the fact that some previously executed commands may have been removed from the sequence.

  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. def vars(i: Input): List[Var[_]]

    Return a list of _all_ Var instances referenced by Input

    Return a list of _all_ Var instances referenced by Input

    Failure to do this correctly will result in missing variable errors during shrinking.

  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from CommandIO[S]

Inherited from AnyRef

Inherited from Any

Ungrouped