@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
Lot49Exception
public void shouldInitTheScheduledThreadPoolExecutorField()
public void theScheduledThreadPoolExecutorFieldShouldBeConstructedWithThreadPoolSize() throws Exception
Exception
private void mockSheduledThreadPoolExecutorConstruction() throws Exception
Exception
public void theScheduledThreadPoolExecutorFieldShouldBeConstructedWithKeepAliveSettings() throws Exception
Exception
public void theScheduledThreadPoolExecutorFieldShouldBeConstructedWithRejectedExecutionHandler() throws Exception
Exception
public void shouldInitTheThreadPoolExecutorField()
public void theThreadPoolExecutorFieldShouldBeConstructedWithThreadPoolSize() throws Exception
Exception
private void mockThreadPoolExecutorConstruction() throws Exception
Exception
public void theThreadPoolExecutorFieldShouldBeConstructedWithKeepAliveSettings() throws Exception
Exception