Spring SimpleJdbcTestUtils example

We are now developing a standalone application with Spring JDBC support. Trying to conduct integration testing and find the utility class SimpleJdbcTestUtils, but, unfortunately, can not find any example how to use it.

Can someone provide me an example using SimpleJdbcTestUtils?

+3
source share
1 answer

This is just a utility class ... what do you want to do?

It works using JdbcTemplate, which is another handy little Spring util. Common to this is to make quick JDBC queries to count rows in tables.

- javadocs/source, ( , Spring ..)

, jdbctemplate , , , , . Spring html .

:

https://svn.codehaus.org/mod4j/tags/mod4j-1.1.0/Examples/RecordShop-ExampleProject/RecordShop-data/src/test/java/org/company/recordshop/PersonDaoTest.java

0

Source: https://habr.com/ru/post/1776648/


All Articles