예제 #1
0
 public java.lang.Object invoke(Invocation invocation) {
   closeMethod();
   List<IArgumentMatcher> lastMatchers = LastControl.pullMatchers();
   lastInvocation = new ExpectedInvocation(invocation, lastMatchers);
   lastInvocationUsed = false;
   return emptyReturnValueFor(invocation.getMethod().getReturnType());
 }
예제 #2
0
 public void replay() {
   closeMethod();
   if (LastControl.pullMatchers() != null) {
     throw new IllegalStateException("matcher calls were used outside expectations");
   }
 }