Package org.springframework.jdbc.core.test

Examples of org.springframework.jdbc.core.test.ExtendedPerson


  public void testMappingWithUnpopulatedFieldsNotChecked() throws SQLException {
    List result = jdbcTemplate.query("select name, age, birth_date, balance from people",
        new BeanPropertyRowMapper(ExtendedPerson.class));
    assertEquals(1, result.size());
    ExtendedPerson bean = (ExtendedPerson) result.get(0);
    verifyConcretePerson(bean);
  }
View Full Code Here


    Mock mock = new Mock();
    List<ExtendedPerson> result = mock.getJdbcTemplate().query(
        "select name, age, birth_date, balance from people",
        new BeanPropertyRowMapper<ExtendedPerson>(ExtendedPerson.class));
    assertEquals(1, result.size());
    ExtendedPerson bean = result.get(0);
    verifyConcretePerson(bean);
    mock.verifyClosed();
  }
View Full Code Here

TOP

Related Classes of org.springframework.jdbc.core.test.ExtendedPerson

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.