use of org.mule.test.marvel.model.MissileProofVillain in project mule by mulesoft.
the class NonBlockingOperationsTestCase method failingNonBlockingConnectedOperation.
@Test
public void failingNonBlockingConnectedOperation() throws Exception {
expectedException.expectFailingComponent(is(locator.find(Location.builder().globalName("fireMissile").addProcessorsPart().addIndexPart(1).build()).get()));
expectedException.expectMessage(is(MISSILE_PROOF));
expectedException.expectCause(instanceOf(UnsupportedOperationException.class));
Villain villain = new MissileProofVillain();
flowRunner("fireMissile").withPayload(villain).run();
assertThat(villain.isAlive(), is(true));
}
Aggregations