Skip to content

Commit

Permalink
GH-2226: Remove Obsolete Test
Browse files Browse the repository at this point in the history
  • Loading branch information
garyrussell committed Apr 27, 2022
1 parent b2beec3 commit f200c03
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,22 +221,6 @@ protected RetryTopicComponentFactory createComponentFactory() {
then(factory).should(never()).setTaskExecutor(taskExecutorMock);
}

@Test
void testCreatesTaskExecutorIfTimingAdjustmentEnabled() {
RetryTopicComponentFactory componentFactory = mock(RetryTopicComponentFactory.class);
ThreadPoolTaskExecutor taskExecutorMock = mock(ThreadPoolTaskExecutor.class);
given(componentFactory.taskExecutor()).willReturn(taskExecutorMock);
RetryTopicConfigurationSupport support = new RetryTopicConfigurationSupport() {
@Override
protected RetryTopicComponentFactory createComponentFactory() {
return componentFactory;
}
};
TaskExecutor taskExecutor = support.backoffManagerTaskExecutor();
then(componentFactory).should().taskExecutor();
assertThat(taskExecutor).isEqualTo(taskExecutorMock);
}

@Test
void testCreatesTaskExecutor() {
RetryTopicConfigurationSupport support = new RetryTopicConfigurationSupport();
Expand Down

0 comments on commit f200c03

Please sign in to comment.