Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When you execute mvn verify then first the unit tests will be executed, followed by the integration tests.  You can run only the integration tests by running mvn failsafe:integration-test.  If you start from a clean checkout, you need to compile them as well: use mvn compile test-compile failsafe:integration-test.

Supporting multiple databases

...

AcrossTestContextConfiguration creates a datasource based on a properties file.  The properties file should be located in ${user.home}/dev-configs/across-test.properties and can contain multiple datasource definitions.  By providing another property acrossTest.datasource, you can specify which datasource from the properties file should be used.  If no acrossTest.datasource property is found, the default is auto which will result in an in-memory HSQLDB is being used.

Info

The across-test package currently comes with the jdbc drivers for MySQL, Oracle and SQL Server. For other databases you will still have to provide the driver dependencies yourself.

...