コード例 #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");
   }
 }