get current value of fixtire.
get current value of fixtire. This value can be used by fixtuee
fixture wich represent current state or Nothing, if current state is not defined.
instance of state types.
instance of state types.
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
retrive information about current state if possible.
Instance of fixtureStateManager, created on demand.
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.
if fixture is resource, than close one.
specHelper -- special object to use within ordinary specs2 specifications to force execution of block of code inside some specifics environment.
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.
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.
Test authors must implement this trait for wrapping access to managed fixture.