Skip to content

Releases: arteam/jdit

0.1

08 Mar 21:01
Compare
Choose a tag to compare
0.1
  • Starting in-memory HSQLDB database;
  • Creating a DBI instance with the same configuration as in Dropwizard's DBIFactory (support of Guava Optional, ImmutableList, ImmutableSet, JodaTime DateTime, logging of a SQL Object name);
  • Logging SQL quieres to Logback with INFO level;
  • Optionally migrating a user-defined sql schema;
  • Sharing the database and the DBI instance between the tests, so they are performed quickly;
  • Providing a JUnit runner for running DBI-related tests;
  • Supporting injecting a DBI DAO or a SQL object to the current test by annotating a tested instance;
  • Supporting injecting a DBI instance or an Handle instance to the current test for performing SQL requests against the database;
  • Sweeping data from the database and resetting sequences after every test.
  • Supporting executing of an arbitrary SQL scripts before every test (or set of tests) by specifying an annotation on a test method or test class.