Package org.mongounit
package org.mongounit
-
ClassDescription
AssertMatchesDataset
annotation specifies location(s) of a JSON-based file(s) with data to match the state of the database with.AssertMatchesDatasets
annotation enables theAssertMatchesDataset
annotation to be repeatable.DatasetGenerator
class is a standalone runnable program that can generate JSON-based starter dataset files which can later be used to seed and verify database tests.DatasetGeneratorArguments
class represents all arguments passed into theDatasetGenerator
standalone program.DatasetGeneratorArguments.DatasetGeneratorArgumentsBuilder
class is a builder pattern class for theDatasetGeneratorArguments
class.LocationType
enum specifies how 'locations' values inSeedWithDataset
andAssertMatchesDataset
annotations should be interpreted.MongoUnit
class contains utilities for manually seeding and performing assertion matches.MongoUnitException
class represents the root exception of any exceptions in the MongoUnit framework.MongoUnitExtension
class is a JUnit 5 extension which enables the MongoUnit framework features in a test target.MongoUnitTest
is an annotation meant to be placed on JUnit classes to autoconfigure the Spring-based MongoDatabaseFactory to use a test database for the integration tests.SeedWithDataset
annotation specifies location(s) of a JSON-based file(s) with data to seed the database before a target test is executed.SeedWithDatasets
annotation enables theSeedWithDataset
annotation to be repeatable.