@PrepareForTest(value=LogUtils.class) @PowerMockIgnore(value={"javax.crypto.*","javax.management.*"}) public class JsonFutureSpec_ALL extends FutureTestTemplate<Map,String>
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.ExpectedException |
exceptionRule |
private String |
key |
private String |
value |
| Constructor and Description |
|---|
JsonFutureSpec_ALL() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel_returnsExpectedResultsIfTaskIsFinished() |
void |
cancel_returnsExpectedResultsIfTaskIsRunning() |
protected Future<Map> |
createTestFuture(Future<String> innerFuture) |
void |
get_long_TimeUnit_returnsExpectedResultsIfInnerFutureGetReturnsIt() |
void |
get_long_TimeUnit_throwsExecutionExceptionIfInnerFutureGetReturnsBadJson() |
void |
get_long_TimeUnit_throwsTimeoutExceptionIfInnerFutureGetWaitTimeElapsed() |
void |
get_returnsExpectedResultsIfInnerFutureGetReturnsIt() |
void |
get_returnsNullIfInnerFutureGetReturnsNull() |
void |
get_throwsExecutionExceptionIfInnerFutureGetReturnsBadJson() |
void |
setUp() |
void |
tearDown() |
getTestFuture, set_up, tear_down, test_cancel_ifTaskIsFinished, test_cancel_ifTaskIsRunning, test_get, test_getWithTimeout_ifWaitTimeElapsed, test_getWithTimeoutprivate String key
private String value
public org.junit.rules.ExpectedException exceptionRule
protected Future<Map> createTestFuture(Future<String> innerFuture)
createTestFuture in class FutureTestTemplate<Map,String>public void cancel_returnsExpectedResultsIfTaskIsFinished()
throws Exception
Exceptionpublic void cancel_returnsExpectedResultsIfTaskIsRunning()
throws Exception
Exceptionpublic void get_returnsNullIfInnerFutureGetReturnsNull()
throws Exception
Exceptionpublic void get_returnsExpectedResultsIfInnerFutureGetReturnsIt()
throws Exception
Exceptionpublic void get_throwsExecutionExceptionIfInnerFutureGetReturnsBadJson()
throws Exception
Exceptionpublic void get_long_TimeUnit_returnsExpectedResultsIfInnerFutureGetReturnsIt()
throws Exception
Exceptionpublic void get_long_TimeUnit_throwsTimeoutExceptionIfInnerFutureGetWaitTimeElapsed()
throws Exception
Exception