For now I have a web java project which builds automatically and deployed to the JBoss by just copying ear archive to server dir (all using Ant).
What I need is a mechanism how to no only automatically deploy application, but also to verify if application deployed successfully and run HttpUnit tests on it.
The problem is how to automatically monitor deployment process to wait for the moment when deployment is finished and only after that run tests. So I want to build, deploy, run tests in ‘one click’ (i use Cruise Control for that).
I would be appreciate for any suggestion about resolving the problem.
Create a base test class from which all other tests derive. It has to be abstract so the automatic unit test collector doesn’t try to run it.
In that class, add this code to setUp():
checkIsDeployedmust be static.