Package org.mongounit.model
Class MongoUnitCollection
java.lang.Object
org.mongounit.model.MongoUnitCollection
MongoUnitCollection class contains information needed to read or seed the database with
for a single collection.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMongoUnitCollection.MongoUnitCollectionBuilderclass is a builder pattern class for theMongoUnitCollectionclass. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleaninthashCode()voidsetCollectionName(String collectionName) voidsetDocuments(List<Map<String, Object>> documents) toString()
-
Constructor Details
-
MongoUnitCollection
public MongoUnitCollection()Default constructor. -
MongoUnitCollection
Constructor.- Parameters:
collectionName- Name of the collection.documents- List of maps of field name/value pairs of all the documents in this collection, where each map represents a single document.
-
-
Method Details
-
builder
- Returns:
- Instance of the builder pattern version of the
MongoUnitCollectionclass.
-
getCollectionName
- Returns:
- Name of the collection.
-
getDocuments
- Returns:
- List of maps of field name/value pairs of all the documents in this collection, where each map represents a single document.
-
setCollectionName
- Parameters:
collectionName- Name of the collection.
-
setDocuments
- Parameters:
documents- List of maps of field name/value pairs of all the documents in this collection, where each map represents a single document.
-
equals
-
hashCode
public int hashCode() -
toString
-