org.mockito.internal.invocation.finder.AllInvocationsFinder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockito-all Show documentation
Show all versions of mockito-all Show documentation
Mock objects library for java
/*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.invocation.finder;
import org.mockito.internal.InternalMockHandler;
import org.mockito.internal.util.MockUtil;
import org.mockito.invocation.Invocation;
import java.util.*;
public class AllInvocationsFinder {
/**
* gets all invocations from mocks. Invocations are ordered earlier first.
*
* @param mocks mocks
* @return invocations
*/
public List find(List> mocks) {
Set invocationsInOrder = new TreeSet(new SequenceNumberComparator());
for (Object mock : mocks) {
InternalMockHandler
© 2015 - 2024 Weber Informatics LLC | Privacy Policy