ua.gradsoft.managedfixture

FixtureAccess

trait FixtureAccess [T <: FixtureStateTypes] extends AnyRef

Test authors must implement this trait for wrapping access to managed fixture.

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

Type Members

  1. type FixtureType = FixtureType

  2. type StartStateType = _80.startStates.Value forSome { val _80: T }

  3. type StateAspectType = _82.stateAspects.Value forSome { val _82: T }

  4. type Types = T

Abstract Value Members

  1. def acquire (): Option[FixtureType]

    get current value of fixtire.

    get current value of fixtire. This value can be used by fixtuee

    returns

    fixture wich represent current state or Nothing, if current state is not defined.

    Attributes
    abstract
  2. val fixtureStateTypes : T

    instance of state types.

    instance of state types.

    Attributes
    abstract
  3. def load (s: StartStateType): Unit

    how to load given state: i.

    how to load given state: i.e. load database dump, initialize vars according, etc.. after call of load, current must return fixture with access to given 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 == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def current : Option[(StartStateType, Set[StateAspectType])]

    retrive information about current state if possible.

  9. def eq (arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def fixtureAccess : FixtureAccess[T]

  13. lazy val fixtureStateManager : FixtureStateManager[T]

    Instance of fixtureStateManager, created on demand.

  14. def getClass (): java.lang.Class[_]

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

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

    Attributes
    final
    Definition Classes
    Any
  17. def markStateChanges (stateChange: FixtureStateChange[T], stateAspectsChanges: Set[StateAspectType]): Unit

    used to mark state changes if wer track changes in datastore.

    used to mark state changes if wer track changes in datastore. Common approach is to have special test-specifics tables in relational database and check one in load state. By default -- do nothing.

  18. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  21. def release (f: FixtureType): Unit

    if fixture is resource, than close one.

  22. object specHelper extends FixtureStateDSL[T]

    specHelper -- special object to use within ordinary specs2 specifications to force execution of block of code inside some specifics environment.

  23. def suiteLevelLock : Option[Lock]

    Suite-level lock.

    Suite-level lock. If this method return Some(lock), than each suite is executed in scope of this lock, otherwise tests in different suites can execute concurrently. By default returned in lock with lifecicle same as FixtureAccess. Override this if you want other behavior.

  24. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  25. def testLevelLock : Option[Lock]

    lock for squence level locks.

    lock for squence level locks. (i.e. set of tests inside one suite (usually - one test)) which need specific resource state and can be executed in parallel. By default returned in lock with lifecicle same as FixtureAccess. Override this if you want other behavior. Note, that sute lock can not be the same object as suite lock.

  26. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any