Search in sources :

Example 1 with UnusedStubsFinder

use of org.mockito.internal.invocation.UnusedStubsFinder in project mockito by mockito.

the class WarningsCollector method getWarnings.

public String getWarnings() {
    List<Invocation> unused = new UnusedStubsFinder().find(createdMocks);
    List<Invocation> all = AllInvocationsFinder.find(createdMocks);
    List<InvocationMatcher> allInvocationMatchers = InvocationMatcher.createFrom(all);
    return new WarningsPrinterImpl(unused, allInvocationMatchers, false).print();
}
Also used : UnusedStubsFinder(org.mockito.internal.invocation.UnusedStubsFinder) Invocation(org.mockito.invocation.Invocation) InvocationMatcher(org.mockito.internal.invocation.InvocationMatcher)

Aggregations

InvocationMatcher (org.mockito.internal.invocation.InvocationMatcher)1 UnusedStubsFinder (org.mockito.internal.invocation.UnusedStubsFinder)1 Invocation (org.mockito.invocation.Invocation)1