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); }
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); }