@Before public void setUp() throws Exception { when(mockAlwaysTrueFailureExpressionFilter.accept(any(MuleMessage.class))).thenReturn(true); when(mockUntilSuccessfulConfiguration.getRoute()).thenReturn(mockRoute); when(mockUntilSuccessfulConfiguration.getAckExpression()).thenReturn(null); when(mockUntilSuccessfulConfiguration.getMaxRetries()).thenReturn(DEFAULT_RETRIES); when(mockUntilSuccessfulConfiguration.getThreadingProfile()).thenReturn(null); when(mockUntilSuccessfulConfiguration.getObjectStore()).thenReturn(null); when(mockUntilSuccessfulConfiguration.getDlqMP()).thenReturn(null); event = getTestEvent(TEST_DATA); }
@Test(expected = InitialisationException.class) public void failWhenThreadingProfileIsConfigured() throws Exception { when(mockUntilSuccessfulConfiguration.getThreadingProfile()).thenReturn(mockThreadingProfile); createProcessingStrategy(); }