Uses of Class
org.mongounit.config.MongoUnitProperties
Packages that use MongoUnitProperties
-
Uses of MongoUnitProperties in org.mongounit
Methods in org.mongounit with parameters of type MongoUnitPropertiesModifier and TypeMethodDescriptionstatic AssertionResultMongoUnitUtil.assertMatches(List<MongoUnitCollection> expected, List<MongoUnitCollection> actual, MongoUnitProperties mongoUnitProperties) Returns AnAssertionResultwith a 'match' of 'true' if the provided 'expected' and 'actual' lists ofMongoUnitCollections match according to the MongoUnit framework rules, or with 'false' otherwise.static AssertionResultMongoUnitUtil.assertMatches(Map<String, Object> expectedDocument, Map<String, Object> actualDocument, MongoUnitProperties mongoUnitProperties) Returns anAssertionResultwith a 'match' of 'true' if the provided 'expectedDocument' and 'actualDocument' match according to the MongoUnit framework rules, or with 'false' otherwise.static AssertionResultMongoUnitUtil.assertMatches(MongoUnitCollection expected, MongoUnitCollection actual, MongoUnitProperties mongoUnitProperties) Returns AnAssertionResultwith a 'match' of 'true' if the provided 'expected' and 'actual'MongoUnitCollections match according to the MongoUnit framework rules, or with 'false' otherwise.static AssertionResultMongoUnitUtil.assertMatchesValue(Object expectedValue, Object actualValue, MongoUnitProperties mongoUnitProperties) static List<MongoUnitCollection> MongoUnitUtil.fromDatabase(com.mongodb.client.MongoDatabase mongoDatabase, MongoUnitProperties mongoUnitProperties, List<String> preserveBsonTypes, String... collectionNames) Returns a list ofMongoUnitCollections that represents the dataset stored in the provided 'mongoDatabase'.static voidMongoUnitUtil.toDatabase(List<MongoUnitCollection> mongoUnitCollections, com.mongodb.client.MongoDatabase mongoDatabase, MongoUnitProperties mongoUnitProperties) Seeds an existing database provided by 'mongoDatabase' with dataset represented in theMongoUnitCollections schema by the provided 'jsonMongoUnitCollections'. -
Uses of MongoUnitProperties in org.mongounit.config
Methods in org.mongounit.config that return MongoUnitPropertiesModifier and TypeMethodDescriptionstatic MongoUnitPropertiesMongoUnitConfigurationUtil.loadMongoUnitProperties()