use of org.springframework.data.mongodb.core.aggregation.Fields.AggregationField in project spring-data-mongodb by spring-projects.
the class FieldsUnitTests method createsFieldsFromFieldInstances.
@Test
public void createsFieldsFromFieldInstances() {
AggregationField reference = new AggregationField("foo");
Fields fields = Fields.from(reference);
assertThat(fields, is(Matchers.<Field>iterableWithSize(1)));
assertThat(fields, hasItem(reference));
}
Aggregations