org.mockito.internal.invocation.UnusedStubsFinder 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;
import org.mockito.internal.InternalMockHandler;
import org.mockito.internal.stubbing.StubbedInvocationMatcher;
import org.mockito.internal.util.MockUtil;
import org.mockito.invocation.Invocation;
import java.util.*;
public class UnusedStubsFinder {
/**
* Finds all unused stubs for given mocks
*
* @param mocks
*/
public List find(List> mocks) {
List unused = new LinkedList();
for (Object mock : mocks) {
InternalMockHandler