Use the H2 database for unit tests

This permits us to define unit tests that run against an in-memory
copy of our database schema, making some unit tests more efficient
to execute, and a lot easier to write (fewer external dependencies).

The TestDatabase class can be used by a JUnit test to work with our
schema in an H2 managed in-memory database.

Change-Id: I54238b2bb240ed57ed83eee4aad07df1bbc70e51
Signed-off-by: Shawn O. Pearce <sop@google.com>
2 files changed