Package org.mongounit.model
Class MongoUnitDatasets
java.lang.Object
org.mongounit.model.MongoUnitDatasets
MongoUnitDatasets class contains seed and assert datasets.-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.MongoUnitDatasets(List<MongoUnitCollection> seedWithDatasets, List<MongoUnitCollection> assertMatchesDatasets, boolean assertAnnotationPresent) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetAssertAnnotationPresent(boolean assertAnnotationPresent) voidsetAssertMatchesDatasets(List<MongoUnitCollection> assertMatchesDatasets) voidsetSeedWithDatasets(List<MongoUnitCollection> seedWithDatasets) toString()
-
Constructor Details
-
MongoUnitDatasets
public MongoUnitDatasets()Default constructor. -
MongoUnitDatasets
public MongoUnitDatasets(List<MongoUnitCollection> seedWithDatasets, List<MongoUnitCollection> assertMatchesDatasets, boolean assertAnnotationPresent) Constructor.- Parameters:
seedWithDatasets- Datasets to seed the database with.assertMatchesDatasets- Datasets to verify matching with.assertAnnotationPresent- Flag to indicate ifAssertMatchesDatasetannotation has been encountered, i.e., the 'assertMatchesDatasets' should actually be used to assert matches, as opposed to having 'assertMatchesDatasets' only there fromSeedWithDatasetwith 'reuseForAssertion = true'.
-
-
Method Details
-
getSeedWithDatasets
- Returns:
- Datasets to seed the database with.
-
setSeedWithDatasets
- Parameters:
seedWithDatasets- Datasets to seed the database with.
-
getAssertMatchesDatasets
- Returns:
- Datasets to verify matching with.
-
setAssertMatchesDatasets
- Parameters:
assertMatchesDatasets- Datasets to verify matching with.
-
isAssertAnnotationPresent
public boolean isAssertAnnotationPresent()- Returns:
- Flag to indicate if
AssertMatchesDatasetannotation has been encountered, i.e., the 'assertMatchesDatasets' should actually be used to assert matches, as opposed to having 'assertMatchesDatasets' only there fromSeedWithDatasetwith 'reuseForAssertion = true'.
-
setAssertAnnotationPresent
public void setAssertAnnotationPresent(boolean assertAnnotationPresent) - Parameters:
assertAnnotationPresent- Flag to indicate ifAssertMatchesDatasetannotation has been encountered, i.e., the 'assertMatchesDatasets' should actually be used to assert matches, as opposed to having 'assertMatchesDatasets' only there fromSeedWithDatasetwith 'reuseForAssertion = true'.
-
toString
-