@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_getWithTimeout
private 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
Exception
public void cancel_returnsExpectedResultsIfTaskIsRunning() throws Exception
Exception
public void get_returnsNullIfInnerFutureGetReturnsNull() throws Exception
Exception
public void get_returnsExpectedResultsIfInnerFutureGetReturnsIt() throws Exception
Exception
public void get_throwsExecutionExceptionIfInnerFutureGetReturnsBadJson() throws Exception
Exception
public void get_long_TimeUnit_returnsExpectedResultsIfInnerFutureGetReturnsIt() throws Exception
Exception
public void get_long_TimeUnit_throwsTimeoutExceptionIfInnerFutureGetWaitTimeElapsed() throws Exception
Exception