Package com.mongodb

Examples of com.mongodb.BasicDBList.toMap()


    BasicDBList each = getAsDBList(values, "$each");

    assertThat(push.get("_class"), nullValue());
    assertThat(values.get("_class"), nullValue());

    assertThat(each.toMap(), (Matcher) allOf(hasValue("spring"), hasValue("data"), hasValue("mongodb")));
  }

  /**
   * @see DATAMONGO-812
   */
 
View Full Code Here


    DBObject push = getAsDBObject(mappedObject, "$push");
    DBObject model = getAsDBObject(push, "models");
    BasicDBList each = getAsDBList(model, "$each");
    BasicDBList values = getAsDBList((DBObject) each.get(0), "values");

    assertThat(values.toMap(), (Matcher) allOf(hasValue("spring"), hasValue("data"), hasValue("mongodb")));
  }

  /**
   * @see DATAMONGO-812
   */
 
View Full Code Here

    DBObject addToSet = getAsDBObject(mappedObject, "$addToSet");
    DBObject values = getAsDBObject(addToSet, "values");
    BasicDBList each = getAsDBList(values, "$each");

    assertThat(each.toMap(), (Matcher) allOf(hasValue("spring"), hasValue("data"), hasValue("mongodb")));
  }

  /**
   * @see DATAMONG0-471
   */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.