Uses of Class
org.mongounit.model.MongoUnitCollection
Packages that use MongoUnitCollection
-
Uses of MongoUnitCollection in org.mongounit
Methods in org.mongounit that return types with arguments of type MongoUnitCollectionModifier and TypeMethodDescriptionstatic List
<MongoUnitCollection> MongoUnitUtil.combineDatasets
(List<MongoUnitCollection> dataset1, List<MongoUnitCollection> dataset2) static List
<MongoUnitCollection> MongoUnitUtil.combineNoRepeatingCollections
(List<MongoUnitCollection> datasetWithRepeatingCollections) static List
<MongoUnitCollection> MongoUnitUtil.fromDatabase
(com.mongodb.client.MongoDatabase mongoDatabase, MongoUnitProperties mongoUnitProperties, List<String> preserveBsonTypes, String... collectionNames) Returns a list ofMongoUnitCollection
s that represents the dataset stored in the provided 'mongoDatabase'.static List
<MongoUnitCollection> MongoUnit.loadDatasetFromLocation
(String location, Class<?> testClass) Returns a list ofMongoUnitCollection
s that represent the JSON-based data pointed to by the provided 'locations' array of paths.static List
<MongoUnitCollection> MongoUnit.loadDatasetFromLocations
(String[] locations, Class<?> testClass) Returns a list ofMongoUnitCollection
s that represent the JSON-based data pointed to by the provided 'locations' array of paths.static List
<MongoUnitCollection> MongoUnit.loadDatasetFromLocations
(String[] locations, LocationType locationType, Class<?> relativePackageClass) Returns a list ofMongoUnitCollection
s that represent the JSON-based data pointed to by the provided 'locations' array of paths.static List
<MongoUnitCollection> MongoUnitUtil.retrieveDatasetFromLocations
(String[] fileLocations, LocationType locationType, Class<?> relativePackageClass, String testClassName) Returns List ofMongoUnitCollection
s based on the data pointed to by provided 'fileLocations'.static List
<MongoUnitCollection> MongoUnit.seedWithDataset
(String[] locations, Class<?> testClass) Seeds the database with the JSON-based datasets pointed to by the provided 'locations' path array.static List
<MongoUnitCollection> MongoUnit.seedWithDataset
(String[] locations, LocationType locationType, Class<?> relativePackageClass) Seeds the database with the JSON-based datasets pointed to by the provided 'locations' path array.static List
<MongoUnitCollection> MongoUnit.seedWithDataset
(String location, Class<?> testClass) Seeds the database with the JSON-based datasets pointed to by the provided 'locations' path array.static List
<MongoUnitCollection> MongoUnitUtil.toMongoUnitTypedCollectionsFromJson
(String jsonMongoUnitCollections) Methods in org.mongounit with parameters of type MongoUnitCollectionModifier and TypeMethodDescriptionstatic AssertionResult
MongoUnitUtil.assertMatches
(MongoUnitCollection expected, MongoUnitCollection actual, MongoUnitProperties mongoUnitProperties) Returns AnAssertionResult
with a 'match' of 'true' if the provided 'expected' and 'actual'MongoUnitCollection
s match according to the MongoUnit framework rules, or with 'false' otherwise.Method parameters in org.mongounit with type arguments of type MongoUnitCollectionModifier and TypeMethodDescriptionstatic AssertionResult
MongoUnitUtil.assertMatches
(List<MongoUnitCollection> expected, List<MongoUnitCollection> actual, MongoUnitProperties mongoUnitProperties) Returns AnAssertionResult
with a 'match' of 'true' if the provided 'expected' and 'actual' lists ofMongoUnitCollection
s match according to the MongoUnit framework rules, or with 'false' otherwise.static void
MongoUnit.assertMatchesDataset
(List<MongoUnitCollection> expectedDatasets) Asserts that whatever is currently in the database connected to by the MongoUnit framework matches the dataset collectively contained in the provided 'datasets'.static List
<MongoUnitCollection> MongoUnitUtil.combineDatasets
(List<MongoUnitCollection> dataset1, List<MongoUnitCollection> dataset2) static List
<MongoUnitCollection> MongoUnitUtil.combineNoRepeatingCollections
(List<MongoUnitCollection> datasetWithRepeatingCollections) static void
MongoUnitUtil.toDatabase
(List<MongoUnitCollection> mongoUnitCollections, com.mongodb.client.MongoDatabase mongoDatabase, MongoUnitProperties mongoUnitProperties) Seeds an existing database provided by 'mongoDatabase' with dataset represented in theMongoUnitCollection
s schema by the provided 'jsonMongoUnitCollections'. -
Uses of MongoUnitCollection in org.mongounit.model
Methods in org.mongounit.model that return MongoUnitCollectionMethods in org.mongounit.model that return types with arguments of type MongoUnitCollectionModifier and TypeMethodDescriptionMongoUnitDatasets.getAssertMatchesDatasets()
MongoUnitDatasets.getSeedWithDatasets()
Method parameters in org.mongounit.model with type arguments of type MongoUnitCollectionModifier and TypeMethodDescriptionvoid
MongoUnitDatasets.setAssertMatchesDatasets
(List<MongoUnitCollection> assertMatchesDatasets) void
MongoUnitDatasets.setSeedWithDatasets
(List<MongoUnitCollection> seedWithDatasets) Constructor parameters in org.mongounit.model with type arguments of type MongoUnitCollectionModifierConstructorDescriptionMongoUnitDatasets
(List<MongoUnitCollection> seedWithDatasets, List<MongoUnitCollection> assertMatchesDatasets, boolean assertAnnotationPresent) Constructor.