* @version $Revision: 882492 $
*/
public class SpringMainStartFailedIssueTest extends TestSupport {
public void testStartupFailed() throws Exception {
Main main = new Main();
String[] args = new String[]{"-ac", "org/apache/camel/spring/issues/SpringMainStartFailedIssueTest.xml"};
try {
main.run(args);
fail("Should have thrown an exception");
} catch (Exception e) {
assertIsInstanceOf(FailedToCreateRouteException.class, e.getCause());
}
assertNull("Spring application context should NOT be created", main.getApplicationContext());
}