Has anyone got some recommendations for setting up unit tests to run within an alfresco environment? Currently, I've done the following;
- Create my own version of ApplicationContextHelper to use a different application-context.xml (testing-application-context.xml). My new application-context.xml does not load alfresco/extension/*-context.xml, instead loading alfresco/extension/*-context-testing.xml, so that I can specify different repository properties when running unit tests.
- Take a copy of BaseAlfrescoTestCase and use my own version of ApplicationContextHelper instead.
- Create unit tests extended from MyBaseAlfrescoTestCase, run them using ant.
How do other people do it?