JCLOUDS-653: correct mock expectation

This commit is contained in:
Andrew Gaul 2014-08-08 15:21:58 -07:00
parent 95cfc0d950
commit b219208d6c
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public class InvokeMappedHttpMethodTest {
public void testAsyncMethodSubmitsRequest() throws Exception {
expect(http.submit(new HttpCommand(getRequest))).andReturn(future);
future.addListener(anyObject(Runnable.class), eq(userThreads));
future.addListener(anyObject(Runnable.class), eq(MoreExecutors.directExecutor()));
replay(http, timeLimiter, fallback, config, future);
invokeHttpMethod.apply(asyncGet);
}