Package

longevity

test

Permalink

package test

provides tools for testing your domainModel and longevity context

Source
package.scala
Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. test
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class CustomGeneratorPool extends AnyRef

    Permalink

    a collection of custom generators for test data generation

  2. trait ExerciseAkkaStreams[P] extends QuerySpec[P]

    Permalink

    extends QuerySpec to add tests for AkkaStreamsRepo.queryToAkkaStream

  3. trait ExerciseFS2[P] extends QuerySpec[P]

    Permalink

    extends QuerySpec to add tests for FS2Repo.queryToFS2

  4. trait ExerciseIterateeIo[P] extends QuerySpec[P]

    Permalink

    extends QuerySpec to add tests for IterateeIoRepo.queryToIterateeIo

  5. trait ExercisePlayEnumerator[P] extends QuerySpec[P]

    Permalink

    extends QuerySpec to add tests for PlayRepo.queryToPlay

  6. trait LongevityFuturesSpec extends Matchers with ScalaFutures with ScaledTimeSpans

    Permalink

    common code for longevity specs that use futures

  7. trait LongevityIntegrationSpec extends LongevityFuturesSpec with BeforeAndAfterAll with LazyLogging

    Permalink

    common code for longevity specs that use a longevity context and a repo pool

  8. abstract class QuerySpec[P] extends FlatSpec with LongevityIntegrationSpec with LazyLogging

    Permalink

    contains common code for testing different Query instances against Repo.queryToFutureVec, longevity.persistence.Repo.queryToIterator, and the four streaming query libraries:

    contains common code for testing different Query instances against Repo.queryToFutureVec, longevity.persistence.Repo.queryToIterator, and the four streaming query libraries:

    pardon the nasty ScalaDocs for this class. we haven't figured out how to remove the methods inherited from ScalaTest classes yet.

  9. class RepoCrudSpec extends FlatSpec with LongevityIntegrationSpec with GivenWhenThen

    Permalink

    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 repoCrudSpec and inMemRepoCrudSpec. these methods are added by an implicit conversion from LongevityContext to 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.

  10. trait TestDataGenerator extends AnyRef

    Permalink

    generates test data for your domain model.

    generates test data for your domain model. you can generate any kind of data that occurs in your domain model by calling TestDataGenerator.generate with the appropriate type parameter.

Value Members

  1. object CustomGeneratorPool

    Permalink

    provides a factory method for an empty pool of custom generators

Inherited from AnyRef

Inherited from Any

Ungrouped