1 /* 2 * Copyright (c) 2007 Mockito contributors 3 * This program is made available under the terms of the MIT License. 4 */ 5 package org.mockito.internal.invocation; 6 7 import java.util.List; 8 9 import org.mockito.internal.verification.api.InOrderContext; 10 import org.mockito.invocation.Invocation; 11 12 public class InvocationMarker { 13 14 public void markVerified(List<Invocation> invocations, CapturesArgumensFromInvocation wanted) { 15 for (Invocation invocation : invocations) { 16 markVerified(invocation, wanted); 17 } 18 } 19 20 public void markVerified(Invocation invocation, CapturesArgumensFromInvocation wanted) { 21 invocation.markVerified(); 22 wanted.captureArgumentsFrom(invocation); 23 } 24 25 public void markVerifiedInOrder(List<Invocation> chunk, CapturesArgumensFromInvocation wanted, InOrderContext context) { 26 markVerified(chunk, wanted); 27 28 for (Invocation i : chunk) { 29 context.markVerified(i); 30 } 31 } 32 }