org.scalatest.managedfixture

FlatSpec

trait FlatSpec [T <: FixtureStateTypes] extends Suite with ShouldVerb with MustVerb with CanVerb with FixtureStateDSL[T] with Grouped

export org.scalatest.fixture.FlatSpec API to world of managed fixtures.

import org.scalatest.managedfixture._

class MyFlatSpec extends managedfixture.[DBFixtureStateTypes.type]
{
 val fuxtureStateTypes = DBFixtureStateTypes
 val fuxtureAccess = DBFixtureAccess
 import DBFixtureStateTypes.States._

 behavior of "My datababase"

 start state(INITIAL) finish state(WITH_USERS)
 it should "be able to add user " in {
    .....
 }

 start state(WITH_USERS) change undefined
 it should "retrieve user with name Jon in our test dataset" in {
    inTransaction {
       val x = db.selectUser("Jon").headOption;
       assert(x!=None)
       assert(x.name == "Jon")
    }
 }


Linear Supertypes
Grouped, FixtureStateDSL[T], CanVerb, MustVerb, ShouldVerb, Suite, Serializable, AbstractSuite, Assertions, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. FlatSpec
  2. Grouped
  3. FixtureStateDSL
  4. CanVerb
  5. MustVerb
  6. ShouldVerb
  7. Suite
  8. Serializable
  9. AbstractSuite
  10. Assertions
  11. AnyRef
  12. Any
Visibility
  1. Public
  2. All

Type Members

  1. type ?0

    Attributes
    abstract
    Definition Classes
    Suite
  2. class BehaviorWord extends AnyRef

    Attributes
    protected final
  3. trait DSLExpression extends AnyRef

  4. class ExecutionVerb extends AnyRef

  5. type FixtureParam = FixtureType

  6. type FixtureStateTypes = T

  7. class FixtureStateVerb extends DSLExpression with FixtureStateVerb_Start

  8. class FixtureStateVerbAspects extends DSLExpression with FixtureStateVerb_Finish with FixtureStateVerb_Change

  9. class FixtureStateVerbChangeNothing extends DSLExpression

  10. class FixtureStateVerbChangeNothingParallel extends DSLExpression

  11. class FixtureStateVerbExecution extends DSLExpression

  12. class FixtureStateVerbFinishState extends DSLExpression

  13. class FixtureStateVerbFinishStateUndefined extends DSLExpression

  14. class FixtureStateVerbStart extends DSLExpression

  15. class FixtureStateVerbStartState extends DSLExpression with FixtureStateVerb_Aspects with FixtureStateVerb_Finish with FixtureStateVerb_Change

  16. class FixtureStateVerbStartState0 extends AnyRef

  17. class FixtureStateVerbStartStateAny extends DSLExpression with FixtureStateVerb_Aspects with FixtureStateVerb_Finish with FixtureStateVerb_Change

  18. class FixtureStateVerbStartStateUndefined extends DSLExpression with FixtureStateVerb_Finish with FixtureStateVerb_Change

  19. class FixtureStateVerbStartStates extends DSLExpression with FixtureStateVerb_Aspects with FixtureStateVerb_Finish with FixtureStateVerb_Change

  20. trait FixtureStateVerb_Aspects extends DSLExpression

  21. trait FixtureStateVerb_Change extends DSLExpression

  22. trait FixtureStateVerb_ExecutionSpec extends AnyRef

    Attributes
    sealed
  23. trait FixtureStateVerb_Finish extends DSLExpression

  24. case class FixtureStateVerb_STATE (s: _165.startStates.Value forSome { val _165: T }) extends Product with Serializable

  25. case class FixtureStateVerb_STATES (args: Seq[_170.startStates.Value forSome { val _170: T }]) extends Product with Serializable

  26. trait FixtureStateVerb_Start extends DSLExpression

  27. class IgnoreVerbString extends AnyRef

    Attributes
    protected final
  28. class IgnoreVerbStringTaggedAs extends AnyRef

    Attributes
    protected final
  29. class IgnoreWord extends AnyRef

    Attributes
    protected final
  30. class InAndIgnoreMethods extends AnyRef

    Attributes
    protected final
  31. class InAndIgnoreMethodsAfterTaggedAs extends AnyRef

    Attributes
    protected final
  32. class ItVerbString extends AnyRef

    Attributes
    protected final
  33. class ItVerbStringTaggedAs extends AnyRef

    Attributes
    protected final
  34. class ItWord extends AnyRef

    Attributes
    protected final

Abstract Value Members

  1. def fixtureAccess : FixtureAccess[T]

    Must be defined in subclass.

    Must be defined in subclass.

    Attributes
    abstract
  2. def fixtureStateTypes : T

    must be defined in subclass.

    must be defined in subclass.

    Attributes
    abstract
    Definition Classes
    FlatSpecFixtureStateDSL

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 == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  6. object FixtureStateVerb_ANY extends Product with Serializable

  7. object FixtureStateVerb_NOTHING extends Product with Serializable

  8. object FixtureStateVerb_PARALLEL extends FixtureStateVerb_ExecutionSpec with Product with Serializable

  9. object FixtureStateVerb_SEQUENTIAL extends FixtureStateVerb_ExecutionSpec with Product with Serializable

  10. object FixtureStateVerb_STATE0 extends Product with Serializable

  11. object FixtureStateVerb_STATE_ANY extends Product with Serializable

  12. object FixtureStateVerb_STATE_UNDEFINED extends Product with Serializable

  13. object FixtureStateVerb_UNDEFINED extends Product with Serializable

  14. var _grouped : Boolean

    if is set to true, than executed

    if is set to true, than executed

    Attributes
    protected
    Definition Classes
    Grouped
  15. val any : FlatSpec.this.FixtureStateVerb_ANY.type

    Definition Classes
    FixtureStateDSL
  16. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  17. def assert (o: Option[String]): Unit

    Definition Classes
    Assertions
  18. def assert (o: Option[String], clue: Any): Unit

    Definition Classes
    Assertions
  19. def assert (condition: Boolean, clue: Any): Unit

    Definition Classes
    Assertions
  20. def assert (condition: Boolean): Unit

    Definition Classes
    Assertions
  21. val behave : BehaveWord

    Attributes
    protected
  22. val behavior : BehaviorWord

    Attributes
    protected
  23. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  24. implicit def convertToEqualizer (left: Any): Equalizer

    Attributes
    implicit
    Definition Classes
    Assertions
  25. implicit def convertToInAndIgnoreMethods (resultOfStringPassedToVerb: ResultOfStringPassedToVerb): InAndIgnoreMethods

    Attributes
    protected implicit
  26. implicit def convertToInAndIgnoreMethodsAfterTaggedAs (resultOfTaggedAsInvocation: ResultOfTaggedAsInvocation): InAndIgnoreMethodsAfterTaggedAs

    Attributes
    protected implicit
  27. implicit def convertToStringCanWrapper (o: String): StringCanWrapperForVerb

    Attributes
    implicit
    Definition Classes
    CanVerb
  28. implicit def convertToStringMustWrapper (o: String): StringMustWrapperForVerb

    Attributes
    implicit
    Definition Classes
    MustVerb
  29. implicit def convertToStringShouldWrapper (o: String): StringShouldWrapperForVerb

    Attributes
    implicit
    Definition Classes
    ShouldVerb
  30. def createInternalSpec [A, B] (whenGrouped: (A) ⇒ B, whenNotGrouped: ⇒ B, clazz: Class[_]): B

    Attributes
    protected
    Definition Classes
    Grouped
  31. def eq (arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  33. def execute (testName: String, configMap: Map[String, Any], color: Boolean, durations: Boolean, shortstacks: Boolean, fullstacks: Boolean, stats: Boolean): Unit

    Attributes
    final
    Definition Classes
    Suite
  34. def execution : ExecutionVerb

    Attributes
    protected
    Definition Classes
    Grouped
  35. def expect (expected: Any)(actual: Any): Unit

    Definition Classes
    Assertions
  36. def expect (expected: Any, clue: Any)(actual: Any): Unit

    Definition Classes
    Assertions
  37. def expectedTestCount (filter: Filter): Int

    Definition Classes
    Suite → AbstractSuite
  38. def fail (cause: Throwable): Nothing

    Definition Classes
    Assertions
  39. def fail (message: String, cause: Throwable): Nothing

    Definition Classes
    Assertions
  40. def fail (message: String): Nothing

    Definition Classes
    Assertions
  41. def fail (): Nothing

    Definition Classes
    Assertions
  42. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  43. def findSpecGroupWith (clazz: Class[_]): Option[Class[_]]

    check - are we have instance of clazz somewhere in our package structure upper to current class.

    check - are we have instance of clazz somewhere in our package structure upper to current class.

    clazz

    - class to search

    Definition Classes
    Grouped
  44. def fixtureUsageDSLAction [A <: DSLExpression] (dsl: A): A

    optional action which can be used by client, overriding this method to perform some custom steps after receiving new value in this DSL.

    optional action which can be used by client, overriding this method to perform some custom steps after receiving new value in this DSL. By default- do nothing and return given value.

    Attributes
    protected
    Definition Classes
    FixtureStateDSL
  45. def fixtureUsageDSLValueAction (value: ⇒ TestFixtureStateUsageDescription[T]): Unit

    called when we receive new value.

    called when we receive new value. (by default - nothing).

    Attributes
    protected
    Definition Classes
    FlatSpecFixtureStateDSL
  46. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  47. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  48. val ignore : IgnoreWord

    Attributes
    protected
  49. implicit def info : Informer

    Attributes
    protected implicit
  50. def intercept [T <: AnyRef] (f: ⇒ Any)(implicit manifest: Manifest[T]): T

    Definition Classes
    Assertions
  51. def isGrouped : Boolean

    Attributes
    protected final
    Definition Classes
    Grouped
  52. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  53. val it : ItWord

    Attributes
    protected
  54. def mark (owner: SpecGroup): Unit

    called by owner after instantiation

    called by owner after instantiation

    Definition Classes
    Grouped
  55. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  56. def nestedSuites : List[Suite]

    Definition Classes
    Suite → AbstractSuite
  57. def nothing : FlatSpec.this.FixtureStateVerb_NOTHING.type

    Definition Classes
    FixtureStateDSL
  58. def notify (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
  60. var optGroupClass : Option[Class[_]]

    Attributes
    protected
    Definition Classes
    Grouped
  61. def parallel : FlatSpec.this.FixtureStateVerb_PARALLEL.type

    Definition Classes
    FixtureStateDSL
  62. def pending : PendingNothing

    Definition Classes
    Suite
  63. def pendingUntilFixed (f: ⇒ Unit): Unit

    Definition Classes
    Suite
  64. def run (testName: Option[String], reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

    Definition Classes
    FlatSpec → Suite → AbstractSuite
  65. def runGrouped [T] (testName: Option[String], reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker, internalSpec: Suite, fixtureGroupClass: Class[T]): Unit

    Definition Classes
    Grouped
  66. def runNestedSuites (reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite
  67. def runTest (testName: String, reporter: Reporter, stopper: Stopper, configMap: Map[String, Any], tracker: Tracker): Unit

    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite
  68. def runTests (testName: Option[String], reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Unit

    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite
  69. def sequential : FlatSpec.this.FixtureStateVerb_SEQUENTIAL.type

    Definition Classes
    FixtureStateDSL
  70. implicit val shorthandSharedTestRegistrationFunction : (String) ⇒ BehaveWord

    Attributes
    protected implicit
  71. implicit val shorthandTestRegistrationFunction : (String, String, String) ⇒ ResultOfStringPassedToVerb

    Attributes
    protected implicit
  72. def start : FixtureStateVerbStart

    Definition Classes
    FixtureStateDSL
  73. def state (x: FlatSpec.this.FixtureStateVerb_UNDEFINED.type): FlatSpec.this.FixtureStateVerb_STATE_UNDEFINED.type

    Definition Classes
    FixtureStateDSL
  74. def state (x: FlatSpec.this.FixtureStateVerb_ANY.type): FlatSpec.this.FixtureStateVerb_STATE_ANY.type

    Definition Classes
    FixtureStateDSL
  75. def state (x: _176.startStates.Value forSome { val _176: T }): FixtureStateVerb_STATE

    Definition Classes
    FixtureStateDSL
  76. val state : FlatSpec.this.FixtureStateVerb_STATE0.type

    Definition Classes
    FixtureStateDSL
  77. def states (x: _179.startStates.Value forSome { val _179: T }*): FixtureStateVerb_STATES

    Definition Classes
    FixtureStateDSL
  78. def suiteName : String

    Definition Classes
    Suite
  79. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  80. def tags : Map[String, Set[String]]

    Definition Classes
    Suite → AbstractSuite
  81. def testNames : Set[String]

    Definition Classes
    Suite → AbstractSuite
  82. def toString (): String

    Definition Classes
    AnyRef → Any
  83. val undefined : FlatSpec.this.FixtureStateVerb_UNDEFINED.type

    Definition Classes
    FixtureStateDSL
  84. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  87. def withClue (clue: Any)(fun: ⇒ Unit): Unit

    Definition Classes
    Assertions
  88. def withFixture (test: NoArgTest): Unit

    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite

Inherited from Grouped

Inherited from FixtureStateDSL[T]

Inherited from CanVerb

Inherited from MustVerb

Inherited from ShouldVerb

Inherited from Suite

Inherited from Serializable

Inherited from AbstractSuite

Inherited from Assertions

Inherited from AnyRef

Inherited from Any