object TurnstileTest extends Properties
An effectful turnstile
Coin Push +-------------+ +-----+ | | +-----+ | | | v v | | +-+---+--+ +--+-----+-+ | | | | | | | | | Locked | | Unlocked | | | | | | | | | +-+---+--+ +--+-----+-+ | | | | | +-----+ | | +-----+ +-------------+ Coin Push
- States: Locked/Unlocked (represented by the boxes) - Transitions: Coin/Push (represented by the arrows)
https://teh.id.au/posts/2017/07/15/state-machine-testing/index.html
- Alphabetic
- By Inheritance
- TurnstileTest
- Properties
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class State(state: TurnstileState) extends Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def commandCoin(turnstile: Turnstile): CommandIO[State]
- def commandPushLocked(turnstile: Turnstile): CommandIO[State]
- def commandPushUnlocked(turnstile: Turnstile): CommandIO[State]
- def commands(turnstile: Turnstile): List[CommandIO[State]]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def main(args: Array[String]): Unit
Allows the implementing test to be run separately without SBT
Allows the implementing test to be run separately without SBT
- Definition Classes
- Properties
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def testParallel: Property
- def testSequential: Property
- def tests: List[Prop]
- Definition Classes
- TurnstileTest → Properties
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object State extends Serializable
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)