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
Modifier and TypeClassDescriptionstatic class
MongoUnitCollection.MongoUnitCollectionBuilder
class is a builder pattern class for theMongoUnitCollection
class. -
Constructor Summary
ConstructorDescriptionDefault constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
boolean
int
hashCode()
void
setCollectionName
(String collectionName) void
setDocuments
(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
MongoUnitCollection
class.
-
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
-