firstRevisionId, secondRevisionId));
NodeAssert.assertDeepEquals(expected, actual);
}
private MongoConnection createMissingNodeScenario(Node expected, String missingPath) {
BasicDBList results1 = new BasicDBList();
BasicDBList results2 = new BasicDBList();
Set<NodeMongo> expectedNodeMongos = NodeMongo.fromNodes(expected.getDescendants(true));
for (NodeMongo nodeMongo : expectedNodeMongos) {
BasicDBObject groupDbObject = new BasicDBObject();
groupDbObject.put("result", nodeMongo);
if (!nodeMongo.getPath().equals(missingPath)) {
results1.add(groupDbObject);
}
results2.add(groupDbObject);
}
DBCollection mockNodeCollection = EasyMock.createMock(DBCollection.class);
EasyMock.expect(
mockNodeCollection.group(EasyMock.anyObject(DBObject.class), EasyMock.anyObject(DBObject.class),