Uses of Class
org.mongounit.config.MongoUnitProperties
-
Uses of MongoUnitProperties in org.mongounit
Modifier 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 AssertionResult
MongoUnitUtil.assertMatches
(Map<String, Object> expectedDocument, Map<String, Object> actualDocument, MongoUnitProperties mongoUnitProperties) Returns anAssertionResult
with a 'match' of 'true' if the provided 'expectedDocument' and 'actualDocument' match according to the MongoUnit framework rules, or with 'false' otherwise.static 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.static AssertionResult
MongoUnitUtil.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 ofMongoUnitCollection
s that represents the dataset stored in the provided 'mongoDatabase'.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 MongoUnitProperties in org.mongounit.config
Modifier and TypeMethodDescriptionstatic MongoUnitProperties
MongoUnitConfigurationUtil.loadMongoUnitProperties()