org.scalatest.managedfixture

PropSpec

trait PropSpec[T <: FixtureStateTypes] extends fixture.PropSpec with ExternalSuite[T] with Grouped

A sister trait to org.scalatest.PropSpec that can pass a managed fixture object into its tests.

import org.scalatest._
import org.scalates.managedfixture._

class MySpects extends managedfixture.PropSpec[MyFixtureStateTypes]
{

   val fixtureStateTypes = MyFixtureStateTypes;
   val fixtureAccess = MyFixtureStateAccess;

    start state(ONE) change nothing
    property("test") { f =>
      // here we know that S is in state one.
      assert(something)
    }


}
Linear Supertypes
Grouped, ExternalSuite[T], FixtureStateDSL[T], fixture.PropSpec, fixture.Suite, Suite, Serializable, AbstractSuite, Assertions, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PropSpec
  2. Grouped
  3. ExternalSuite
  4. FixtureStateDSL
  5. PropSpec
  6. Suite
  7. Suite
  8. Serializable
  9. AbstractSuite
  10. Assertions
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait DSLExpression extends AnyRef

    Definition Classes
    FixtureStateDSL
  2. final class Equalizer extends AnyRef

    Definition Classes
    Assertions
  3. class ExecutionVerb extends AnyRef

    Definition Classes
    Grouped
  4. type FixtureParam = T.FixtureType

    Definition Classes
    ExternalSuite → Suite
  5. type FixtureStateTypes = T

    Definition Classes
    ExternalSuite
  6. class FixtureStateVerb extends DSLExpression with FixtureStateVerb_Start

    Definition Classes
    FixtureStateDSL
  7. class FixtureStateVerbAspects extends DSLExpression with FixtureStateVerb_Finish with FixtureStateVerb_Change

    Definition Classes
    FixtureStateDSL
  8. class FixtureStateVerbChangeNothing extends DSLExpression

    Definition Classes
    FixtureStateDSL
  9. class FixtureStateVerbChangeNothingParallel extends DSLExpression

    Definition Classes
    FixtureStateDSL
  10. class FixtureStateVerbExecution extends DSLExpression

    Definition Classes
    FixtureStateDSL
  11. class FixtureStateVerbFinishState extends DSLExpression

    Definition Classes
    FixtureStateDSL
  12. class FixtureStateVerbFinishStateUndefined extends DSLExpression

    Definition Classes
    FixtureStateDSL
  13. class FixtureStateVerbStart extends DSLExpression

    Definition Classes
    FixtureStateDSL
  14. class FixtureStateVerbStartState extends DSLExpression with FixtureStateVerb_Aspects with FixtureStateVerb_Finish with FixtureStateVerb_Change

    Definition Classes
    FixtureStateDSL
  15. class FixtureStateVerbStartState0 extends AnyRef

    Definition Classes
    FixtureStateDSL
  16. class FixtureStateVerbStartStateAny extends DSLExpression with FixtureStateVerb_Aspects with FixtureStateVerb_Finish with FixtureStateVerb_Change

    Definition Classes
    FixtureStateDSL
  17. class FixtureStateVerbStartStateUndefined extends DSLExpression with FixtureStateVerb_Finish with FixtureStateVerb_Change

    Definition Classes
    FixtureStateDSL
  18. class FixtureStateVerbStartStates extends DSLExpression with FixtureStateVerb_Aspects with FixtureStateVerb_Finish with FixtureStateVerb_Change

    Definition Classes
    FixtureStateDSL
  19. trait FixtureStateVerb_Aspects extends DSLExpression

    Definition Classes
    FixtureStateDSL
  20. trait FixtureStateVerb_Change extends DSLExpression

    Definition Classes
    FixtureStateDSL
  21. sealed trait FixtureStateVerb_ExecutionSpec extends AnyRef

    Definition Classes
    FixtureStateDSL
  22. trait FixtureStateVerb_Finish extends DSLExpression

    Definition Classes
    FixtureStateDSL
  23. case class FixtureStateVerb_STATE(s: Value forSome {val _167: T}) extends Product with Serializable

    Definition Classes
    FixtureStateDSL
  24. case class FixtureStateVerb_STATES(args: Seq[Value forSome {val _171: T}]) extends Product with Serializable

    Definition Classes
    FixtureStateDSL
  25. trait FixtureStateVerb_Start extends DSLExpression

    Definition Classes
    FixtureStateDSL
  26. trait NoArgTest extends () ⇒ Unit

    Attributes
    protected
    Definition Classes
    Suite
  27. trait OneArgTest extends (fixture.Suite.FixtureParam) ⇒ Unit

    Attributes
    protected
    Definition Classes
    Suite

Abstract Value Members

  1. abstract def fixtureAccess: FixtureAccess[T]

    must be defined in subclass.

    must be defined in subclass.

    Definition Classes
    ExternalSuite
  2. abstract def fixtureStateTypes: T

    must be defined in subclass

    must be defined in subclass

    Definition Classes
    ExternalSuite → FixtureStateDSL

Concrete Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. object FixtureStateVerb_ANY extends Product with Serializable

    Definition Classes
    FixtureStateDSL
  7. object FixtureStateVerb_NOTHING extends Product with Serializable

    Definition Classes
    FixtureStateDSL
  8. object FixtureStateVerb_PARALLEL extends FixtureStateVerb_ExecutionSpec with Product with Serializable

    Definition Classes
    FixtureStateDSL
  9. object FixtureStateVerb_SEQUENTIAL extends FixtureStateVerb_ExecutionSpec with Product with Serializable

    Definition Classes
    FixtureStateDSL
  10. object FixtureStateVerb_STATE0 extends Product with Serializable

    Definition Classes
    FixtureStateDSL
  11. object FixtureStateVerb_STATE_ANY extends Product with Serializable

    Definition Classes
    FixtureStateDSL
  12. object FixtureStateVerb_STATE_UNDEFINED extends Product with Serializable

    Definition Classes
    FixtureStateDSL
  13. object FixtureStateVerb_UNDEFINED extends Product with Serializable

    Definition Classes
    FixtureStateDSL
  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: FixtureStateVerb_ANY.type

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

    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. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. implicit def convertNoArgToFixtureFunction(fun: () ⇒ Any): (FixtureParam) ⇒ Any

    Attributes
    protected
    Definition Classes
    PropSpec
  23. implicit def convertPendingToFixtureFunction(f: ⇒ PendingNothing): (FixtureParam) ⇒ Any

    Attributes
    protected
    Definition Classes
    PropSpec
  24. implicit def convertToEqualizer(left: Any): Equalizer

    Definition Classes
    Assertions
  25. def createInternalSpec[A, B](whenGrouped: (A) ⇒ B, whenNotGrouped: ⇒ B, clazz: Class[_]): B

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

    Definition Classes
    AnyRef
  27. def equals(arg0: Any): Boolean

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

    Definition Classes
    Suite
  29. def execution: ExecutionVerb

    Attributes
    protected
    Definition Classes
    Grouped
  30. def expectResult(expected: Any)(actual: Any): Unit

    Definition Classes
    Assertions
  31. def expectResult(expected: Any, clue: Any)(actual: Any): Unit

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

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

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

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

    Definition Classes
    Assertions
  36. def fail(): Nothing

    Definition Classes
    Assertions
  37. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. 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
  39. 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
  40. 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
    ExternalSuite → FixtureStateDSL
  41. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  42. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  43. def ignore(testName: String, testTags: Tag*)(testFun: (FixtureParam) ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    PropSpec → PropSpec
  44. implicit def info: Informer

    Attributes
    protected
    Definition Classes
    PropSpec → ExternalSuite → PropSpec
  45. def intercept[T <: AnyRef](f: ⇒ Any)(implicit manifest: Manifest[T]): T

    Definition Classes
    Assertions
  46. lazy val internalSpec: InternalPropSpec[T]

    Definition Classes
    PropSpec → ExternalSuite
  47. final def isGrouped: Boolean

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

    Definition Classes
    Any
  49. def mark(owner: SpecGroup): Unit

    called by owner after instantiation

    called by owner after instantiation

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

    Definition Classes
    AnyRef
  51. def nestedSuites: List[Suite]

    Definition Classes
    Suite → AbstractSuite
  52. def nothing: FixtureStateVerb_NOTHING.type

    Definition Classes
    FixtureStateDSL
  53. final def notify(): Unit

    Definition Classes
    AnyRef
  54. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  55. var optGroupClass: Option[Class[_]]

    Attributes
    protected
    Definition Classes
    Grouped
  56. def parallel: FixtureStateVerb_PARALLEL.type

    Definition Classes
    FixtureStateDSL
  57. def pending: PendingNothing

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

    Definition Classes
    Suite
  59. def propertiesFor(unit: Unit): Unit

    Attributes
    protected
    Definition Classes
    PropSpec
  60. def property(testName: String, testTags: Tag*)(testFun: (FixtureParam) ⇒ Any): Unit

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

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

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

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

    Attributes
    protected
    Definition Classes
    PropSpec → Suite → Suite → AbstractSuite
  65. 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
    PropSpec → Suite → AbstractSuite
  66. def sequential: FixtureStateVerb_SEQUENTIAL.type

    Definition Classes
    FixtureStateDSL
  67. def start: FixtureStateVerbStart

    Definition Classes
    FixtureStateDSL
  68. def state(x: FixtureStateVerb_UNDEFINED.type): FixtureStateVerb_STATE_UNDEFINED.type

    Definition Classes
    FixtureStateDSL
  69. def state(x: FixtureStateVerb_ANY.type): FixtureStateVerb_STATE_ANY.type

    Definition Classes
    FixtureStateDSL
  70. def state(x: Value forSome {val _175: T}): FixtureStateVerb_STATE

    Definition Classes
    FixtureStateDSL
  71. val state: FixtureStateVerb_STATE0.type

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

    Definition Classes
    FixtureStateDSL
  73. final val styleName: String

    Definition Classes
    PropSpec → Suite → Suite → AbstractSuite
  74. def suiteName: String

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

    Definition Classes
    AnyRef
  76. def tags: Map[String, Set[String]]

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

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

    Definition Classes
    AnyRef → Any
  79. val undefined: FixtureStateVerb_UNDEFINED.type

    Definition Classes
    FixtureStateDSL
  80. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  83. def withClue[T](clue: Any)(fun: ⇒ T): T

    Definition Classes
    Assertions
  84. def withFixture(test: OneArgTest): Unit

    Definition Classes
    ExternalSuite → Suite
  85. def withFixture(test: NoArgTest): Unit

    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite

Deprecated Value Members

  1. def expect(expected: Any)(actual: Any): Unit

    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of expectResult instead.

  2. def expect(expected: Any, clue: Any)(actual: Any): Unit

    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of expectResult instead.

  3. def testsFor(unit: Unit): Unit

    Attributes
    protected
    Definition Classes
    PropSpec
    Annotations
    @deprecated
    Deprecated

    Use propertiesFor instead.

Inherited from Grouped

Inherited from ExternalSuite[T]

Inherited from FixtureStateDSL[T]

Inherited from fixture.PropSpec

Inherited from fixture.Suite

Inherited from Suite

Inherited from Serializable

Inherited from AbstractSuite

Inherited from Assertions

Inherited from AnyRef

Inherited from Any

Ungrouped