I have a spring mvc application and we run tests with it using jetty.
Sometimes the loading of the context totally fails, because bad xml or because Class Not Found exception or because a bean throws an exception in the constructor, setter or init method.
In such a case I would like to to stop the application with System.exit(1)
or take some other drastic measure and not have the test cycle continue any further.
How can that be done?