Whitespace
Make flow explicit by adding an else
Start supporting alternative persistence units by binding them to the unitName
Refactor AbstractServerTest to extract out initialization and finalization of each resouce (Mail/TransactionSynchronizationRegistry/DbCleaner) into separate methods. Make DbCleaner methods ignore behaviour if DbCleaner is not present
Add test to verify that the test class will work with no DbCleaner defined
Support the binding of named mocks
Introduce a MockPersistenceTestModule for interacting with the database via mocks
Rename EntityManagerTestingModule to PersistenceTestModule and deprecate the old version
Fix the test to handle named persistence units
Make it possible to bind the mock entity manager without a name
Support retrieval of service by name through simple utility methods
Separate out the flushing interceptor concept from persistence context to make it easy to reroute flush to the test case
Support the concept of a primary entityManager for a test case
Rework the test to test specific features in different methods and to start testing different interactions with EntityManager etc
Only catch class not found exceptions when attempting to create JNDI binding
Guard the shutdown of JNDI with catch in case classes are not present