use of org.bson.types.MaxKey in project mongo-hadoop by mongodb.
the class UDFTest method testMinMaxKey.
@Test
public void testMinMaxKey() throws IOException, ParseException {
PigTest.runScript("/pig/genminmaxkeys.pig");
for (Document doc : OUTPUT_COLLECTION.find()) {
assertTrue(doc.get("newMin") instanceof MinKey);
assertTrue(doc.get("newMax") instanceof MaxKey);
}
}
Aggregations