Package org.jtester.hamcrest.iassert.object.impl

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


  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

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

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

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

  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

  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

  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

      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

Related Classes of org.jtester.hamcrest.iassert.object.impl.CollectionAssert

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.