Skip to content

Commit

Permalink
Executor.submit() invoked on 2 argument overload
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-allan committed Mar 13, 2024
1 parent 96207a0 commit 6c1426b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private void expectsExecutorSubmit() {
exMock.expects(once()).method("submit").will(new Stub(){

public Object invoke(Invocation arg0) throws Throwable {
Callable callable = (Callable) arg0.parameterValues.get(0);
Callable callable = (Callable) arg0.parameterValues.get(1);
final Object rv = callable.call();
return new Future() {

Expand Down Expand Up @@ -154,4 +154,4 @@ public StringBuffer describeTo(StringBuffer arg0) {
return arg0;
}});
}
}
}

0 comments on commit 6c1426b

Please sign in to comment.