use of org.springframework.data.mongodb.core.mapreduce.GroupBy in project spring-data-mongodb by spring-projects.
the class GroupByTests method singleKeyCreation.
@Test
public void singleKeyCreation() {
Document gc = new GroupBy("a").getGroupByObject();
assertThat(gc, is(Document.parse("{ \"key\" : { \"a\" : 1} , \"$reduce\" : null , \"initial\" : null }")));
}