-
Notifications
You must be signed in to change notification settings - Fork 35
Interface DatabaseConnectionFactory
FlorianGWE edited this page Oct 27, 2013
·
4 revisions
= DatabaseConnectionFactory =
This interface must be implemented if the [http://code.google.com/p/flyway-test-extensions/source/browse/flyway-dbunit-test/src/main/java/com/googlecode/flyway/test/dbunit/DefaultDatabaseConnectionFactory.java DefaultDatabaseConnectionFactory] fit not for own uses.
This implementation must be part of the application context that are used inside the ContextConfiguration.
A example can be found
- a [https://github.com/flyway/flyway-test-extensions/tree/master/flyway-test-extensions/flyway-test-sample-dbunit/src/test/resources/context/dbunit_connection_applicationContext.xml example application context]
- a example implementation of connection factory [https://github.com/flyway/flyway-test-extensions/tree/master/flyway-test-extensions/flyway-test-sample-dbunit/src/test/java/com/googlecode/flyway/test/sample/spring3/TestDatabaseConnectionFactory.java TestDatabaseConnectionFactory]
- usage inside a test case
- [https://github.com/flyway/flyway-test-extensions/tree/master/flyway-test-extensions/flyway-test-sample-dbunit/src/test/java/com/googlecode/flyway/test/sample/spring3/Spring3DBunitConnectionFactoryTest.java
- Spring3DBunitConnectionFactoryTest]