Package org.mongounit.model
Class MongoUnitCollection.MongoUnitCollectionBuilder
java.lang.Object
org.mongounit.model.MongoUnitCollection.MongoUnitCollectionBuilder
- Enclosing class:
MongoUnitCollection
MongoUnitCollection.MongoUnitCollectionBuilder
class is a builder pattern class for the MongoUnitCollection
class.-
Method Summary
-
Method Details
-
collectionName
- Parameters:
collectionName
- Name of the collection.- Returns:
- Instance of this builder class.
-
documents
- Parameters:
documents
- List of maps of field name/value pairs of all the documents in this collection, where each map represents a single document.- Returns:
- Instance of this builder class.
-
build
- Returns:
- New instance of the
MongoUnitCollection
class with the previously set properties.
-
toString
-