package test
provides tools for testing your subdomain and longevity context
- Source
- package.scala
Type Members
-
trait
LongevityFuturesSpec
extends Matchers with ScalaFutures with ScaledTimeSpans
common code for longevity specs that use futures
-
trait
LongevityIntegrationSpec
extends LongevityFuturesSpec with BeforeAndAfterAll with LazyLogging
common code for longevity specs that use a longevity context and a repo pool
-
abstract
class
QuerySpec
[P] extends FlatSpec with LongevityIntegrationSpec with LazyLogging
contains common code for testing different Query instances against Repo.retrieveByQuery and Repo.streamByQuery.
contains common code for testing different Query instances against Repo.retrieveByQuery and Repo.streamByQuery.
pardon the nasty ScalaDocs for this class. we haven't figured out how to remove the methods inherited from ScalaTest classes yet.
-
class
RepoCrudSpec
extends FlatSpec with LongevityIntegrationSpec with GivenWhenThen
a ScalaTest fixture to test a RepoPool.
a ScalaTest fixture to test a RepoPool. instances of this test are provided in your LongevityContext via methods
repoCrudSpecandinMemRepoCrudSpec. these methods are added by an implicit conversion fromLongevityContextto ScalaTestSpecs.the repo CRUD spec exercises create/retrieve/update/delete for all the repos in your repo pool.
pardon the nasty ScalaDocs for this class. we haven't figured out how to remove the methods inherited from ScalaTest classes yet.