hibernate/hibernate-ogm — pull request #41 by Sanne (2011-11-21 18:27:08+00:00)
Title: OGM-110 and OGM-109

I've introduced a HashMap GridDialect, so that most Hibernate OGM "core" tests can be run on it, then kicked Infinispan out of core in it's own module so that we can compile the core without any dependency to Infinispan.

Removing Infinispan required some refactoring in the testsuite, and some very small changes in the core.

There's one limitation: my HashMap at this stage doesn't support transactions; hence a new testmethod Rule which will skip tests needing transactions (only 1 so far) if the plugged backend doesn't support them.
See usage of _RequiresTransactionalCapabilitiesRule_ in _JPAResourceLocalStandaloneTest_ for an example.
The downside of this is that if you write a test veryfying transactions, make sure you run it from a non-core module. The good is that functional tests in core are very fast to run.

The TestHelper will statically link to the datastore dialect, a system property defines which backend is being used: so the testsuite can be used with a single backing database type only.

The last commit "Use Infinispan SNAPSHOT" is optional, but besides the usual Infinispan fixes it also makes sure the logging versions of Hibernate Core and Infinispan match; I've deployed a fresh Infinispan snapshot.