use of org.mule.runtime.core.api.expression.ExpressionRuntimeException in project mule by mulesoft.
the class SplitAggregateScopeTestCase method failingExpression.
@Test
@DescriptorKey("An invalid collection expression result in a ExpressionRuntimeException")
public void failingExpression() throws Exception {
SensingNullMessageProcessor nullMessageProcessor = new SensingNullMessageProcessor();
router.setMessageProcessors(singletonList(nullMessageProcessor));
router.setCollectionExpression("!@INVALID");
muleContext.getInjector().inject(router);
router.setAnnotations(getAppleFlowComponentLocationAnnotations());
router.initialise();
expectedException.expect(MessagingException.class);
expectedException.expectCause(instanceOf(ExpressionRuntimeException.class));
router.process(testEvent());
}
Aggregations