@PrepareForTest(value={LogUtils.class,ServiceRunner.class})
@PowerMockIgnore(value="javax.management.*")
public class ServiceRunnerSpec_InitExecutors
extends Object
| Modifier and Type | Field and Description |
|---|---|
private ThreadPoolExecutor |
executor |
private static int |
EXECUTOR_THREAD_POOL_SIZE |
private ScheduledThreadPoolExecutor |
scheduledExecutor |
private ServiceRunner |
serviceRunnerSimpleMock |
| Constructor and Description |
|---|
ServiceRunnerSpec_InitExecutors() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeEach() |
private void |
mockSheduledThreadPoolExecutorConstruction() |
private void |
mockThreadPoolExecutorConstruction() |
void |
shouldInitTheScheduledThreadPoolExecutorField() |
void |
shouldInitTheThreadPoolExecutorField() |
void |
theScheduledThreadPoolExecutorFieldShouldBeConstructedWithKeepAliveSettings() |
void |
theScheduledThreadPoolExecutorFieldShouldBeConstructedWithRejectedExecutionHandler() |
void |
theScheduledThreadPoolExecutorFieldShouldBeConstructedWithThreadPoolSize() |
void |
theThreadPoolExecutorFieldShouldBeConstructedWithKeepAliveSettings() |
void |
theThreadPoolExecutorFieldShouldBeConstructedWithRejectedExecutionHandler() |
void |
theThreadPoolExecutorFieldShouldBeConstructedWithThreadPoolSize() |
private static final int EXECUTOR_THREAD_POOL_SIZE
private ScheduledThreadPoolExecutor scheduledExecutor
private ThreadPoolExecutor executor
private ServiceRunner serviceRunnerSimpleMock
public void beforeEach()
throws Lot49Exception
Lot49Exceptionpublic void shouldInitTheScheduledThreadPoolExecutorField()
public void theScheduledThreadPoolExecutorFieldShouldBeConstructedWithThreadPoolSize()
throws Exception
Exceptionprivate void mockSheduledThreadPoolExecutorConstruction()
throws Exception
Exceptionpublic void theScheduledThreadPoolExecutorFieldShouldBeConstructedWithKeepAliveSettings()
throws Exception
Exceptionpublic void theScheduledThreadPoolExecutorFieldShouldBeConstructedWithRejectedExecutionHandler()
throws Exception
Exceptionpublic void shouldInitTheThreadPoolExecutorField()
public void theThreadPoolExecutorFieldShouldBeConstructedWithThreadPoolSize()
throws Exception
Exceptionprivate void mockThreadPoolExecutorConstruction()
throws Exception
Exceptionpublic void theThreadPoolExecutorFieldShouldBeConstructedWithKeepAliveSettings()
throws Exception
Exception