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

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


  public IObjectAssert queryAsPoJo(String query, Class objClazz) {
    IN_DB_OPERATOR.set(true);
    try {
      Object o = SqlRunner.query(query, objClazz);
      return new ObjectAssert(o);
    } finally {
      IN_DB_OPERATOR.set(false);
    }
  }
View Full Code Here


   * @param value
   *            a object argument
   * @return
   */
  public IObjectAssert object(Object bean) {
    return new ObjectAssert(bean);
  }
View Full Code Here

   * a parameter general object will be asserted
   *
   * @return
   */
  public IObjectAssert object() {
    return new ObjectAssert();
  }
View Full Code Here

  public IObjectAssert queryAs(Class pojo) {
    IN_DB_OPERATOR.set(true);
    try {
      String query = "select * from " + table;
      Object o = SqlRunner.query(query, pojo);
      return new ObjectAssert(o);
    } finally {
      IN_DB_OPERATOR.set(false);
    }
  }
View Full Code Here

TOP

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

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.