testhelpers/src/main/java/com/kdgregory/aws/utils/testhelpers/mocks/AbstractMock.java
/**
     *  Asserts that the last invocation did not occur on the current thread
     *  (verifies background operation).
     */
Asserts that the last invocation did not occur on the current thread
(verifies background operation).
Asserts that the last invocation did not occur on the current thread ( verifies background operation ) .
public void assertLastInvocationNotOnCurrentThread(String methodName)
    {
        Thread invocationThread = lastInvocationThreads.get(methodName);
        assertNotNull("last invocation was tracked", invocationThread);
        assertTrue("invocation was not on current thread", Thread.currentThread() != invocationThread);
    }
public void assertLastInvocationNotOnCurrentThread ( String methodName ) { Thread invocationThread = lastInvocationThreads . get ( methodName ) ; assertNotNull ( "last invocation was tracked" , invocationThread ) ; assertTrue ( "invocation was not on current thread" , Thread . currentThread ( ) != invocationThread ) ; }
Asserts that the last invocation did not occur on the current thread
  (verifies background operation).
Asserts that the last invocation did not occur on the current thread ( verifies background operation ) .