carrotsearch/junit-benchmarks — pull request #5 by sworisbreathing (2012-03-24 21:04:19+00:00)
Title: Additional database consumer support

I refactored the h2 package and pulled out all the database-agnostic code into a separate package, with an abstract parent class for database consumers, and I added a new consumer for MySQL.

The MySQLConsumer has its own copies of all the SQL scripts, but for now they are identical to the H2 implementation.

I also added a unit test with an embedded mysql instance, but you have to activate a specific build profile in order to run it. I did this because embedding mysql requires a rather large dependency and the test sets up mysql to listen on a random port.