Examples of CollectionAssert


Examples of org.jtester.hamcrest.iassert.object.impl.CollectionAssert

  public ICollectionAssert query(String sql) {
    IN_DB_OPERATOR.set(true);
    try {
      List list = SqlRunner.queryMapList(sql);
      return new CollectionAssert(list);
    } finally {
      IN_DB_OPERATOR.set(false);
    }
  }
View Full Code Here

Examples of org.jtester.hamcrest.iassert.object.impl.CollectionAssert

  public ICollectionAssert queryList(String query, Class pojo) {
    IN_DB_OPERATOR.set(true);
    try {
      List list = SqlRunner.queryList(query, pojo);
      return new CollectionAssert(list);
    } finally {
      IN_DB_OPERATOR.set(false);
    }
  }
View Full Code Here

Examples of org.jtester.hamcrest.iassert.object.impl.CollectionAssert

   * @param value
   *            a collection argument
   * @return
   */
  public ICollectionAssert list(Collection collection) {
    return new CollectionAssert(collection);
  }
View Full Code Here

Examples of org.jtester.hamcrest.iassert.object.impl.CollectionAssert

   * @param value
   *            a collection argument
   * @return
   */
  public ICollectionAssert collection(Collection collection) {
    return new CollectionAssert(collection);
  }
View Full Code Here

Examples of org.jtester.hamcrest.iassert.object.impl.CollectionAssert

   * a parameter collection will be asserted
   *
   * @return
   */
  public ICollectionAssert collection() {
    return new CollectionAssert();
  }
View Full Code Here

Examples of org.jtester.hamcrest.iassert.object.impl.CollectionAssert

  public ICollectionAssert query() {
    IN_DB_OPERATOR.set(true);
    try {
      String query = "select * from " + table;
      List list = SqlRunner.queryMapList(query);
      return new CollectionAssert(list);
    } finally {
      IN_DB_OPERATOR.set(false);
    }
  }
View Full Code Here

Examples of org.jtester.hamcrest.iassert.object.impl.CollectionAssert

  public ICollectionAssert queryList(Class pojo) {
    IN_DB_OPERATOR.set(true);
    try {
      String query = "select * from " + table;
      List list = SqlRunner.queryList(query, pojo);
      return new CollectionAssert(list);
    } finally {
      IN_DB_OPERATOR.set(false);
    }
  }
View Full Code Here

Examples of org.jtester.hamcrest.iassert.object.impl.CollectionAssert

  public ICollectionAssert queryWhere(String where) {
    IN_DB_OPERATOR.set(true);
    try {
      String query = "select * from " + table + " where " + where;
      List list = SqlRunner.queryMapList(query);
      return new CollectionAssert(list);
    } finally {
      IN_DB_OPERATOR.set(false);
    }
  }
View Full Code Here

Examples of org.jtester.hamcrest.iassert.object.impl.CollectionAssert

      StringBuilder query = new StringBuilder("select * from ");
      query.append(table).append(" ");
      String where = DBHelper.getWhereCondiction(dataMap);
      query.append(where);
      List list = SqlRunner.queryMapList(query.toString(), dataMap);
      return new CollectionAssert(list);
    } finally {
      IN_DB_OPERATOR.set(false);
    }
  }
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.