Package

longevity

test

Permalink

package test

provides tools for testing your modelType 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[F[_], M, P] extends QuerySpec[F, M, P]

    Permalink

    extends QuerySpec to add tests for AkkaStreamsRepo.queryToAkkaStream

    F

    the effect

    M

    the model

    P

    the persistent type

  3. trait ExerciseFS2[F[_], M, P] extends QuerySpec[F, M, P]

    Permalink

    extends QuerySpec to add tests for FS2Repo.queryToFS2

    extends QuerySpec to add tests for FS2Repo.queryToFS2

    F

    the effect

    M

    the model

    P

    the persistent type

  4. trait ExerciseIterateeIo[F[_], M, P] extends QuerySpec[F, M, P]

    Permalink

    extends QuerySpec to add tests for IterateeIoRepo.queryToIterateeIo

    F

    the effect

    M

    the model

    P

    the persistent type

  5. trait ExercisePlayEnumerator[F[_], M, P] extends QuerySpec[F, M, P]

    Permalink

    extends QuerySpec to add tests for PlayRepo.queryToPlay

    extends QuerySpec to add tests for PlayRepo.queryToPlay

    F

    the effect

    M

    the model

    P

    the persistent type

  6. trait LongevityIntegrationSpec[F[_], M] extends Matchers with BeforeAndAfterAll

    Permalink

    common code for longevity specs that use a longevity context with the test repo

    common code for longevity specs that use a longevity context with the test repo

    F

    the effect

    M

    the model

  7. abstract class QuerySpec[F[_], M, P] extends FlatSpec with LongevityIntegrationSpec[F, M]

    Permalink

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

    contains common code for testing different Query instances against Repo.queryToVector, 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.

    F

    the effect

    M

    the model

    P

    the persistent type

  8. class RepoCrudSpec[F[_], M] extends FlatSpec with LongevityIntegrationSpec[F, M] with GivenWhenThen

    Permalink

    a ScalaTest fixture to test a Repo.

    a ScalaTest fixture to test a Repo. 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 persistent types in your repo.

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

    F

    the effect

    M

    the model

  9. 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