use of org.springframework.core.task.NoOpRunnable in project spring-framework by spring-projects.
the class ConcurrentTaskExecutorTests method passingNullExecutorToSetterResultsInDefaultTaskExecutorBeingUsed.
@Test
void passingNullExecutorToSetterResultsInDefaultTaskExecutorBeingUsed() {
ConcurrentTaskExecutor executor = new ConcurrentTaskExecutor();
executor.setConcurrentExecutor(null);
assertThatCode(() -> executor.execute(new NoOpRunnable())).doesNotThrowAnyException();
}
use of org.springframework.core.task.NoOpRunnable in project spring-framework by spring-projects.
the class ConcurrentTaskExecutorTests method zeroArgCtorResultsInDefaultTaskExecutorBeingUsed.
@Test
void zeroArgCtorResultsInDefaultTaskExecutorBeingUsed() {
ConcurrentTaskExecutor executor = new ConcurrentTaskExecutor();
assertThatCode(() -> executor.execute(new NoOpRunnable())).doesNotThrowAnyException();
}
use of org.springframework.core.task.NoOpRunnable in project spring-framework by spring-projects.
the class ConcurrentTaskExecutorTests method passingNullExecutorToCtorResultsInDefaultTaskExecutorBeingUsed.
@Test
void passingNullExecutorToCtorResultsInDefaultTaskExecutorBeingUsed() {
ConcurrentTaskExecutor executor = new ConcurrentTaskExecutor(null);
assertThatCode(() -> executor.execute(new NoOpRunnable())).doesNotThrowAnyException();
}
Aggregations