.println("-------------- testTerminateOnInitializationFailureWithDelegateBrokerMissing -------------");
System.out
.println("---------------------- The Uima Client Times Out After 20 seconds --------------------------");
System.out
.println("-- The test requires 1 minute to complete due to 60 second delay in Spring Listener ----");
BaseUIMAAsynchronousEngine_impl eeUimaEngine = new BaseUIMAAsynchronousEngine_impl();
try {
// Deploy remote service
deployService(eeUimaEngine, relativePath + "/Deploy_NoOpAnnotator.xml");
// Deploy top level aggregate that communicates with the remote via Http Tunnelling
deployService(eeUimaEngine, relativePath
+ "/Deploy_AggregateAnnotatorTerminateOnDelegateBadBrokerURL.xml");
// Initialize and run the Test. Wait for a completion and cleanup resources.
Map<String, Object> appCtx = new HashMap();
appCtx.put(UimaAsynchronousEngine.ServerUri, String.valueOf(broker.getMasterConnectorURI()));
appCtx.put(UimaAsynchronousEngine.Endpoint, "TopLevelTaeQueue");
appCtx.put(UimaAsynchronousEngine.GetMetaTimeout, 20000);
runTest(appCtx, eeUimaEngine, String.valueOf(broker.getMasterConnectorURI()),
"TopLevelTaeQueue", 1, EXCEPTION_LATCH);
fail("Expected ResourceInitializationException. Instead, the Aggregate Reports Successfull Initialization");
} catch (ResourceInitializationException e) {
Exception cause = getCause(e);
System.out.println("Expected Initialization Exception was received:" + cause);
} catch (Exception e) {
fail("Expected ResourceInitializationException. Instead Got:" + e.getClass());
} finally {
eeUimaEngine.stop();
}
}