Package org.springframework.data.mongodb.core.aggregation

Examples of org.springframework.data.mongodb.core.aggregation.Fields$AggregationField


  @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));
  }
View Full Code Here


  }

  @Test
  public void fieldsFactoryMethod() {

    Fields fields = fields("a", "b").and("c").and("d", "e");

    assertThat(fields, is(Matchers.<Field> iterableWithSize(4)));

    verify(fields.getField("a"), "a", null);
    verify(fields.getField("b"), "b", null);
    verify(fields.getField("c"), "c", null);
    verify(fields.getField("d"), "d", "e");
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.mongodb.core.aggregation.Fields$AggregationField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.