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.api; 6 7 import java.util.List; 8 9 import org.mockito.internal.invocation.InvocationMatcher; 10 import org.mockito.invocation.Invocation; 11 12 public class VerificationDataInOrderImpl implements VerificationDataInOrder { 13 14 private final InOrderContext inOrder; 15 private final List<Invocation> allInvocations; 16 private final InvocationMatcher wanted; 17 VerificationDataInOrderImpl(InOrderContext inOrder, List<Invocation> allInvocations, InvocationMatcher wanted)18 public VerificationDataInOrderImpl(InOrderContext inOrder, List<Invocation> allInvocations, InvocationMatcher wanted) { 19 this.inOrder = inOrder; 20 this.allInvocations = allInvocations; 21 this.wanted = wanted; 22 } 23 getAllInvocations()24 public List<Invocation> getAllInvocations() { 25 return allInvocations; 26 } 27 getOrderingContext()28 public InOrderContext getOrderingContext() { 29 return inOrder; 30 } 31 getWanted()32 public InvocationMatcher getWanted() { 33 return wanted; 34 } 35 }