public class MongoDBAsserts
extends java.lang.Object
Constructor and Description |
---|
MongoDBAsserts() |
Modifier and Type | Method and Description |
---|---|
static org.apache.beam.it.truthmatchers.RecordsSubject |
assertThatMongoDBDocuments(java.util.Collection<org.bson.Document> documents)
Creates a
RecordsSubject to assert information within a list of records. |
static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
mongoDBDocumentsToRecords(java.lang.Iterable<org.bson.Document> documents)
Convert MongoDB
Document to a list of maps. |
public static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> mongoDBDocumentsToRecords(java.lang.Iterable<org.bson.Document> documents)
Document
to a list of maps.documents
- List of Documents to parseRecordsSubject
public static org.apache.beam.it.truthmatchers.RecordsSubject assertThatMongoDBDocuments(java.util.Collection<org.bson.Document> documents)
RecordsSubject
to assert information within a list of records.documents
- List of Documents in MongoDB Document
format to use in the comparison.