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.verification;
6 
7 import org.mockito.internal.util.collections.IdentitySet;
8 import org.mockito.internal.verification.api.InOrderContext;
9 import org.mockito.invocation.Invocation;
10 
11 public class InOrderContextImpl implements InOrderContext {
12 
13     final IdentitySet verified = new IdentitySet();
14 
isVerified(Invocation invocation)15     public boolean isVerified(Invocation invocation) {
16         return verified.contains(invocation);
17     }
18 
markVerified(Invocation i)19     public void markVerified(Invocation i) {
20         verified.add(i);
21     }
22 }
23