org.scalacheck

Commands

trait Commands extends Prop

See User Guide for usage examples

Linear Supertypes
Prop, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Commands
  2. Prop
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Type Members

  1. class Binding extends AnyRef

  2. trait Command extends AnyRef

    Abstract commands are defined as subtypes of the traits Command or SetCommand.

  3. trait SetCommand extends Command

    A command that binds its result for later use

  4. type State <: AnyRef

    The abstract state data type.

    The abstract state data type. This type must be immutable. The state type that encodes the abstract state. The abstract state should model all the features we need from the real state, the system under test. We should leave out all details that aren't needed for specifying our pre- and postconditions. The state type must be called State and be immutable.

    Attributes
    abstract

Abstract Value Members

  1. def genCommand (s: State): Gen[Command]

    The command generator.

    The command generator. Given an abstract state, the generator should return a command that is allowed to run in that state. Note that it is still neccessary to define preconditions on the commands if there are any. The generator is just giving a hint of which commands that are suitable for a given state, the preconditions will still be checked before a command runs. Sometimes you maybe want to adjust the distribution of your command generator according to the state, or do other calculations based on the state.

    Attributes
    abstract
  2. def initialState (): State

    initialState should reset the system under test to a well defined initial state, and return the abstract version of that state.

    initialState should reset the system under test to a well defined initial state, and return the abstract version of that state.

    Attributes
    abstract

Concrete Value Members

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

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def && (p: Prop): Prop

    Returns a new property that holds if and only if both this and the given property hold.

    Returns a new property that holds if and only if both this and the given property hold. If one of the properties doesn't generate a result, the new property will generate false.

    Definition Classes
    Prop
  5. def ++ (p: Prop): Prop

    Returns a new property that holds if and only if both this and the given property hold.

    Returns a new property that holds if and only if both this and the given property hold. If one of the properties doesn't generate a result, the new property will generate the same result as the other property.

    Definition Classes
    Prop
  6. def :| (l: Symbol): Prop

    Put a label on the property to make test reports clearer

    Put a label on the property to make test reports clearer

    Definition Classes
    Prop
  7. def :| (l: String): Prop

    Put a label on the property to make test reports clearer

    Put a label on the property to make test reports clearer

    Definition Classes
    Prop
  8. def == (p: Prop): Prop

    Returns a new property that holds if and only if both this and the given property generates a result with the exact same status.

    Returns a new property that holds if and only if both this and the given property generates a result with the exact same status. Note that this means that if one of the properties is proved, and the other one passed, then the resulting property will fail.

    Definition Classes
    Prop
  9. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  10. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  11. def ==> (p: ⇒ Prop): Prop

    Combines two properties through implication

    Combines two properties through implication

    Definition Classes
    Prop
  12. def apply (p: Params): Result

    Definition Classes
    Commands → Prop
  13. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  14. def check : Unit

    Convenience method that checks this property and reports the result on the console.

    Convenience method that checks this property and reports the result on the console. If you need to get the results from the test use the check methods in Test instead.

    Definition Classes
    Prop
  15. def check (prms: Params): Unit

    Convenience method that checks this property with the given parameters and reports the result on the console.

    Convenience method that checks this property with the given parameters and reports the result on the console. If you need to get the results from the test use the check methods in Test instead.

    Definition Classes
    Prop
  16. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. def combine (p: Prop)(f: (Result, Result) ⇒ Result): Prop

    Definition Classes
    Prop
  18. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  19. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. def flatMap (f: (Result) ⇒ Prop): Prop

    Definition Classes
    Prop
  22. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  23. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  24. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  25. def label (l: String): Prop

    Put a label on the property to make test reports clearer

    Put a label on the property to make test reports clearer

    Definition Classes
    Prop
  26. def main (args: Array[String]): Unit

    Convenience method that makes it possible to use this property as an application that checks itself on execution

    Convenience method that makes it possible to use this property as an application that checks itself on execution

    Definition Classes
    Prop
  27. def mainCallsExit : Boolean

    Whether main should call System.

    Whether main should call System.exit with an exit code. Defaults to true; override to change.

    Definition Classes
    Prop
  28. def mainRunner (args: Array[String]): Int

    The logic for main, separated out to make it easier to avoid System.

    The logic for main, separated out to make it easier to avoid System.exit calls. Returns exit code.

    Definition Classes
    Prop
  29. def map (f: (Result) ⇒ Result): Prop

    Definition Classes
    Prop
  30. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  31. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  32. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  33. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  34. def toString (): String

    Definition Classes
    Prop → AnyRef → Any
  35. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. def |: (l: Symbol): Prop

    Put a label on the property to make test reports clearer

    Put a label on the property to make test reports clearer

    Definition Classes
    Prop
  39. def |: (l: String): Prop

    Put a label on the property to make test reports clearer

    Put a label on the property to make test reports clearer

    Definition Classes
    Prop
  40. def || (p: Prop): Prop

    Returns a new property that holds if either this or the given property (or both) hold.

    Returns a new property that holds if either this or the given property (or both) hold.

    Definition Classes
    Prop
  41. def === (p: Prop): Prop

    Returns a new property that holds if and only if both this and the given property generates a result with the exact same status.

    Returns a new property that holds if and only if both this and the given property generates a result with the exact same status. Note that this means that if one of the properties is proved, and the other one passed, then the resulting property will fail.

    Definition Classes
    Prop
    Annotations
    @deprecated
    Deprecated

    Use == instead.

Inherited from Prop

Inherited from AnyRef

Inherited from Any