I am trying to get integration tests going with Spring, Maven and Jetty. I have got a Jetty server to start up running my app before the integration tests start using the Maven Jetty plugin and a run-exploded pre-integration-test goal. This works well for testing using net.sourceforge.jwebunit.junit.WebTestCase.
What I need to do now is have "extra" beans loaded into the app when it is started for the integration tests. This would be easy if my test classes and resources could be deployed with the app somehow. Anyone know an easy way to do this?
I want to be able to "mock out" some stuff (e.g. sending email) and write integration tests that cannot easily be done purely through the "front end".