예제 #1
0
 private void assertEventsNotProcessed(MongoDocument expectedDocument, String collection)
     throws Exception {
   final DBObject mongoDocument =
       TestPrepare.findOneInCollection(expectedDocument.getId(), collection);
   Assert.assertNull(
       String.format("evento da collection %s foi processado", collection), mongoDocument);
 }
예제 #2
0
 private void compareDocuments(MongoDocument expectedDocument, String collection)
     throws Exception {
   final DBObject mongoDocument =
       TestPrepare.findOneInCollection(expectedDocument.getId(), collection);
   Assert.assertEquals(
       String.format("documento da collection %s difere do esperado", collection),
       expectedDocument,
       mongoDocument);
 }