public class BackgroundInitializerTest extends Object
| Constructor and Description |
|---|
BackgroundInitializerTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testGetActiveExecutorBeforeStart()
Tries to obtain the executor before start().
|
void |
testGetActiveExecutorExternal()
Tests whether an external executor is correctly detected.
|
void |
testGetActiveExecutorTemp()
Tests getActiveExecutor() for a temporary executor.
|
void |
testGetBeforeStart()
Tests calling get() before start().
|
void |
testGetCheckedException()
Tests the get() method if background processing causes a checked
exception.
|
void |
testGetInterruptedException()
Tests the get() method if waiting for the initialization is interrupted.
|
void |
testGetRuntimeException()
Tests the get() method if background processing causes a runtime
exception.
|
void |
testInitialize()
Tests whether initialize() is invoked.
|
void |
testInitializeTempExecutor()
Tests the execution of the background task if a temporary executor has to
be created.
|
void |
testIsStartedAfterGet()
Tests isStarted() after the background task has finished.
|
void |
testIsStartedFalse()
Tests isStarted() before start() was called.
|
void |
testIsStartedTrue()
Tests isStarted() after start().
|
void |
testSetExternalExecutor()
Tests whether an external executor can be set using the
setExternalExecutor() method.
|
void |
testSetExternalExecutorAfterStart()
Tests that setting an executor after start() causes an exception.
|
void |
testStartMultipleTimes()
Tests invoking start() multiple times.
|
public BackgroundInitializerTest()
public void testInitialize()
public void testGetActiveExecutorBeforeStart()
public void testGetActiveExecutorExternal()
public void testGetActiveExecutorTemp()
public void testInitializeTempExecutor()
public void testSetExternalExecutor() throws Exception
Exceptionpublic void testSetExternalExecutorAfterStart() throws ConcurrentException
ConcurrentExceptionpublic void testStartMultipleTimes()
public void testGetBeforeStart() throws ConcurrentException
ConcurrentExceptionpublic void testGetRuntimeException() throws Exception
Exceptionpublic void testGetCheckedException() throws Exception
Exceptionpublic void testGetInterruptedException() throws Exception
Exceptionpublic void testIsStartedFalse()
public void testIsStartedTrue()
public void testIsStartedAfterGet()
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.