mockito / mockito

Compare 916e61e ... +0 ... caf35b2

Coverage Reach
src/main/java/org/mockito/internal/creation/bytebuddy/InlineDelegateByteBuddyMockMaker.java src/main/java/org/mockito/internal/creation/bytebuddy/MockMethodAdvice.java src/main/java/org/mockito/internal/creation/bytebuddy/InlineBytecodeGenerator.java src/main/java/org/mockito/internal/creation/bytebuddy/SubclassBytecodeGenerator.java src/main/java/org/mockito/internal/creation/bytebuddy/ModuleHandler.java src/main/java/org/mockito/internal/creation/bytebuddy/ByteBuddyCrossClassLoaderSerializationSupport.java src/main/java/org/mockito/internal/creation/bytebuddy/SubclassByteBuddyMockMaker.java src/main/java/org/mockito/internal/creation/bytebuddy/SubclassInjectionLoader.java src/main/java/org/mockito/internal/creation/bytebuddy/TypeCachingBytecodeGenerator.java src/main/java/org/mockito/internal/creation/bytebuddy/MockMethodInterceptor.java src/main/java/org/mockito/internal/creation/bytebuddy/InlineByteBuddyMockMaker.java src/main/java/org/mockito/internal/creation/bytebuddy/ByteBuddyMockMaker.java src/main/java/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.java src/main/java/org/mockito/internal/creation/bytebuddy/TypeSupport.java src/main/java/org/mockito/internal/creation/bytebuddy/MockFeatures.java src/main/java/org/mockito/internal/creation/bytebuddy/BytecodeGenerator.java src/main/java/org/mockito/internal/creation/proxy/ProxyMockMaker.java src/main/java/org/mockito/internal/creation/proxy/MethodHandleProxy.java src/main/java/org/mockito/internal/creation/proxy/InvokeDefaultProxy.java src/main/java/org/mockito/internal/creation/proxy/ProxyRealMethod.java src/main/java/org/mockito/internal/creation/MockSettingsImpl.java src/main/java/org/mockito/internal/creation/instance/ConstructorInstantiator.java src/main/java/org/mockito/internal/creation/instance/DefaultInstantiatorProvider.java src/main/java/org/mockito/internal/creation/instance/ObjenesisInstantiator.java src/main/java/org/mockito/internal/creation/settings/CreationSettings.java src/main/java/org/mockito/internal/creation/DelegatingMethod.java src/main/java/org/mockito/internal/creation/SuspendMethod.java src/main/java/org/mockito/internal/util/reflection/GenericMetadataSupport.java src/main/java/org/mockito/internal/util/reflection/InstrumentationMemberAccessor.java src/main/java/org/mockito/internal/util/reflection/FieldInitializer.java src/main/java/org/mockito/internal/util/reflection/Fields.java src/main/java/org/mockito/internal/util/reflection/ReflectionMemberAccessor.java src/main/java/org/mockito/internal/util/reflection/InstanceField.java src/main/java/org/mockito/internal/util/reflection/BeanPropertySetter.java src/main/java/org/mockito/internal/util/reflection/GenericTypeExtractor.java src/main/java/org/mockito/internal/util/reflection/LenientCopyTool.java src/main/java/org/mockito/internal/util/reflection/SuperTypesLastSorter.java src/main/java/org/mockito/internal/util/reflection/ModuleMemberAccessor.java src/main/java/org/mockito/internal/util/reflection/FieldReader.java src/main/java/org/mockito/internal/util/reflection/GenericMaster.java src/main/java/org/mockito/internal/util/reflection/FieldInitializationReport.java src/main/java/org/mockito/internal/util/collections/HashCodeAndEqualsSafeSet.java src/main/java/org/mockito/internal/util/collections/HashCodeAndEqualsMockWrapper.java src/main/java/org/mockito/internal/util/collections/ListUtil.java src/main/java/org/mockito/internal/util/collections/IdentitySet.java src/main/java/org/mockito/internal/util/collections/Iterables.java src/main/java/org/mockito/internal/util/collections/Sets.java src/main/java/org/mockito/internal/util/MockUtil.java src/main/java/org/mockito/internal/util/JavaEightUtil.java src/main/java/org/mockito/internal/util/Platform.java src/main/java/org/mockito/internal/util/Primitives.java src/main/java/org/mockito/internal/util/MockCreationValidator.java src/main/java/org/mockito/internal/util/StringUtil.java src/main/java/org/mockito/internal/util/io/IOUtil.java src/main/java/org/mockito/internal/util/KotlinInlineClassUtil.java src/main/java/org/mockito/internal/util/DefaultMockingDetails.java src/main/java/org/mockito/internal/util/MockNameImpl.java src/main/java/org/mockito/internal/util/Timer.java src/main/java/org/mockito/internal/util/Checks.java src/main/java/org/mockito/internal/util/ObjectMethodsGuru.java src/main/java/org/mockito/internal/util/ConsoleMockitoLogger.java src/main/java/org/mockito/internal/stubbing/answers/AnswerFunctionalInterfaces.java src/main/java/org/mockito/internal/stubbing/answers/ReturnsArgumentAt.java src/main/java/org/mockito/internal/stubbing/answers/InvocationInfo.java src/main/java/org/mockito/internal/stubbing/answers/Returns.java src/main/java/org/mockito/internal/stubbing/answers/AbstractThrowsException.java src/main/java/org/mockito/internal/stubbing/answers/ClonesArguments.java src/main/java/org/mockito/internal/stubbing/answers/AnswersWithDelay.java src/main/java/org/mockito/internal/stubbing/answers/DefaultAnswerValidator.java src/main/java/org/mockito/internal/stubbing/answers/ReturnsElementsOf.java src/main/java/org/mockito/internal/stubbing/answers/CallsRealMethods.java src/main/java/org/mockito/internal/stubbing/answers/DoesNothing.java src/main/java/org/mockito/internal/stubbing/answers/ThrowsExceptionForClassType.java src/main/java/org/mockito/internal/stubbing/answers/ThrowsException.java src/main/java/org/mockito/internal/stubbing/defaultanswers/ReturnsEmptyValues.java src/main/java/org/mockito/internal/stubbing/defaultanswers/ReturnsDeepStubs.java src/main/java/org/mockito/internal/stubbing/defaultanswers/RetrieveGenericsForDefaultAnswers.java src/main/java/org/mockito/internal/stubbing/defaultanswers/ForwardsInvocations.java src/main/java/org/mockito/internal/stubbing/defaultanswers/ReturnsSmartNulls.java src/main/java/org/mockito/internal/stubbing/defaultanswers/ReturnsMoreEmptyValues.java src/main/java/org/mockito/internal/stubbing/defaultanswers/ReturnsMocks.java src/main/java/org/mockito/internal/stubbing/defaultanswers/TriesToReturnSelf.java src/main/java/org/mockito/internal/stubbing/defaultanswers/GloballyConfiguredAnswer.java src/main/java/org/mockito/internal/stubbing/InvocationContainerImpl.java src/main/java/org/mockito/internal/stubbing/StubberImpl.java src/main/java/org/mockito/internal/stubbing/BaseStubbing.java src/main/java/org/mockito/internal/stubbing/StubbedInvocationMatcher.java src/main/java/org/mockito/internal/stubbing/DefaultLenientStubber.java src/main/java/org/mockito/internal/stubbing/DoAnswerStyleStubbing.java src/main/java/org/mockito/internal/stubbing/OngoingStubbingImpl.java src/main/java/org/mockito/internal/stubbing/ConsecutiveStubbing.java src/main/java/org/mockito/internal/stubbing/StrictnessSelector.java src/main/java/org/mockito/internal/stubbing/StubbingComparator.java src/main/java/org/mockito/internal/stubbing/UnusedStubbingReporting.java src/main/java/org/mockito/internal/configuration/injection/filter/NameBasedCandidateFilter.java src/main/java/org/mockito/internal/configuration/injection/filter/TerminalMockCandidateFilter.java src/main/java/org/mockito/internal/configuration/injection/filter/TypeBasedCandidateFilter.java src/main/java/org/mockito/internal/configuration/injection/filter/OngoingInjector.java src/main/java/org/mockito/internal/configuration/injection/PropertyAndSetterInjection.java src/main/java/org/mockito/internal/configuration/injection/scanner/MockScanner.java src/main/java/org/mockito/internal/configuration/injection/scanner/InjectMocksScanner.java src/main/java/org/mockito/internal/configuration/injection/MockInjection.java src/main/java/org/mockito/internal/configuration/injection/ConstructorInjection.java src/main/java/org/mockito/internal/configuration/injection/SpyOnInjectedFieldsHandler.java src/main/java/org/mockito/internal/configuration/injection/MockInjectionStrategy.java src/main/java/org/mockito/internal/configuration/plugins/PluginInitializer.java src/main/java/org/mockito/internal/configuration/plugins/PluginLoader.java src/main/java/org/mockito/internal/configuration/plugins/DefaultMockitoPlugins.java src/main/java/org/mockito/internal/configuration/plugins/PluginFinder.java src/main/java/org/mockito/internal/configuration/plugins/PluginRegistry.java src/main/java/org/mockito/internal/configuration/plugins/PluginFileReader.java src/main/java/org/mockito/internal/configuration/plugins/Plugins.java src/main/java/org/mockito/internal/configuration/plugins/DefaultPluginSwitch.java src/main/java/org/mockito/internal/configuration/SpyAnnotationEngine.java src/main/java/org/mockito/internal/configuration/InjectingAnnotationEngine.java src/main/java/org/mockito/internal/configuration/IndependentAnnotationEngine.java src/main/java/org/mockito/internal/configuration/MockAnnotationProcessor.java src/main/java/org/mockito/internal/configuration/GlobalConfiguration.java src/main/java/org/mockito/internal/configuration/ClassPathLoader.java src/main/java/org/mockito/internal/configuration/DefaultInjectionEngine.java src/main/java/org/mockito/internal/configuration/CaptorAnnotationProcessor.java src/main/java/org/mockito/internal/matchers/apachecommons/EqualsBuilder.java src/main/java/org/mockito/internal/matchers/apachecommons/ReflectionEquals.java src/main/java/org/mockito/internal/matchers/text/ValuePrinter.java src/main/java/org/mockito/internal/matchers/text/MatchersPrinter.java src/main/java/org/mockito/internal/matchers/text/MatcherToString.java src/main/java/org/mockito/internal/matchers/text/FormattedText.java src/main/java/org/mockito/internal/matchers/ArrayEquals.java src/main/java/org/mockito/internal/matchers/CapturingMatcher.java src/main/java/org/mockito/internal/matchers/Equals.java src/main/java/org/mockito/internal/matchers/InstanceOf.java src/main/java/org/mockito/internal/matchers/Equality.java src/main/java/org/mockito/internal/matchers/EqualsWithDelta.java src/main/java/org/mockito/internal/matchers/CompareTo.java src/main/java/org/mockito/internal/matchers/Matches.java src/main/java/org/mockito/internal/matchers/Or.java src/main/java/org/mockito/internal/matchers/And.java src/main/java/org/mockito/internal/matchers/LocalizedMatcher.java src/main/java/org/mockito/internal/matchers/Not.java src/main/java/org/mockito/internal/matchers/Find.java src/main/java/org/mockito/internal/matchers/EndsWith.java src/main/java/org/mockito/internal/matchers/StartsWith.java src/main/java/org/mockito/internal/matchers/Contains.java src/main/java/org/mockito/internal/matchers/Same.java src/main/java/org/mockito/internal/matchers/LessThan.java src/main/java/org/mockito/internal/matchers/LessOrEqual.java src/main/java/org/mockito/internal/matchers/Any.java src/main/java/org/mockito/internal/matchers/GreaterThan.java src/main/java/org/mockito/internal/matchers/CompareEqual.java src/main/java/org/mockito/internal/matchers/GreaterOrEqual.java src/main/java/org/mockito/internal/matchers/NotNull.java src/main/java/org/mockito/internal/matchers/Null.java src/main/java/org/mockito/internal/invocation/InvocationsFinder.java src/main/java/org/mockito/internal/invocation/SerializableMethod.java src/main/java/org/mockito/internal/invocation/InvocationMatcher.java src/main/java/org/mockito/internal/invocation/InterceptedInvocation.java src/main/java/org/mockito/internal/invocation/MatcherApplicationStrategy.java src/main/java/org/mockito/internal/invocation/ArgumentsProcessor.java src/main/java/org/mockito/internal/invocation/finder/AllInvocationsFinder.java src/main/java/org/mockito/internal/invocation/finder/VerifiableInvocationsFinder.java src/main/java/org/mockito/internal/invocation/TypeSafeMatching.java src/main/java/org/mockito/internal/invocation/RealMethod.java src/main/java/org/mockito/internal/invocation/mockref/MockStrongReference.java src/main/java/org/mockito/internal/invocation/mockref/MockWeakReference.java src/main/java/org/mockito/internal/invocation/MatchersBinder.java src/main/java/org/mockito/internal/invocation/DefaultInvocationFactory.java src/main/java/org/mockito/internal/invocation/InvocationMarker.java src/main/java/org/mockito/internal/invocation/StubInfoImpl.java src/main/java/org/mockito/internal/invocation/InvocationComparator.java src/main/java/org/mockito/internal/verification/checkers/NumberOfInvocationsChecker.java src/main/java/org/mockito/internal/verification/checkers/MissingInvocationChecker.java src/main/java/org/mockito/internal/verification/checkers/AtLeastXNumberOfInvocationsChecker.java src/main/java/org/mockito/internal/verification/checkers/AtLeastDiscrepancy.java src/main/java/org/mockito/internal/verification/argumentmatching/ArgumentMatchingTool.java src/main/java/org/mockito/internal/verification/VerificationOverTimeImpl.java src/main/java/org/mockito/internal/verification/VerificationWrapperInOrderWrapper.java src/main/java/org/mockito/internal/verification/DefaultRegisteredInvocations.java src/main/java/org/mockito/internal/verification/AtMost.java src/main/java/org/mockito/internal/verification/Times.java src/main/java/org/mockito/internal/verification/MockAwareVerificationMode.java src/main/java/org/mockito/internal/verification/AtLeast.java src/main/java/org/mockito/internal/verification/VerificationWrapper.java src/main/java/org/mockito/internal/verification/Calls.java src/main/java/org/mockito/internal/verification/VerificationDataImpl.java src/main/java/org/mockito/internal/verification/Only.java src/main/java/org/mockito/internal/verification/NoMoreInteractions.java src/main/java/org/mockito/internal/verification/VerificationEventImpl.java src/main/java/org/mockito/internal/verification/InOrderWrapper.java src/main/java/org/mockito/internal/verification/VerificationModeFactory.java src/main/java/org/mockito/internal/verification/SingleRegisteredInvocation.java src/main/java/org/mockito/internal/verification/Description.java src/main/java/org/mockito/internal/verification/api/VerificationDataInOrderImpl.java src/main/java/org/mockito/internal/verification/NoInteractions.java src/main/java/org/mockito/internal/verification/InOrderContextImpl.java src/main/java/org/mockito/internal/exceptions/Reporter.java src/main/java/org/mockito/internal/exceptions/stacktrace/StackTraceFilter.java src/main/java/org/mockito/internal/exceptions/stacktrace/DefaultStackTraceCleaner.java src/main/java/org/mockito/internal/exceptions/stacktrace/ConditionalStackTraceFilter.java src/main/java/org/mockito/internal/exceptions/stacktrace/DefaultStackTraceCleanerProvider.java src/main/java/org/mockito/internal/exceptions/util/ScenarioPrinter.java src/main/java/org/mockito/internal/exceptions/ExceptionIncludingMockitoWarnings.java src/main/java/org/mockito/internal/junit/VerificationCollectorImpl.java src/main/java/org/mockito/internal/junit/UniversalTestListener.java src/main/java/org/mockito/internal/junit/DefaultStubbingLookupListener.java src/main/java/org/mockito/internal/junit/JUnitSessionStore.java src/main/java/org/mockito/internal/junit/UnusedStubbings.java src/main/java/org/mockito/internal/junit/StubbingArgMismatches.java src/main/java/org/mockito/internal/junit/UnusedStubbingsFinder.java src/main/java/org/mockito/internal/junit/ArgMismatchFinder.java src/main/java/org/mockito/internal/junit/MismatchReportingTestListener.java src/main/java/org/mockito/internal/junit/UnnecessaryStubbingsReporter.java src/main/java/org/mockito/internal/junit/ExceptionFactory.java src/main/java/org/mockito/internal/junit/StubbingHint.java src/main/java/org/mockito/internal/junit/JUnitRule.java src/main/java/org/mockito/internal/junit/JUnitTestRule.java src/main/java/org/mockito/internal/junit/DefaultTestFinishedEvent.java src/main/java/org/mockito/internal/junit/StrictStubsRunnerTestListener.java src/main/java/org/mockito/internal/junit/NoOpTestListener.java src/main/java/org/mockito/internal/debugging/LoggingListener.java src/main/java/org/mockito/internal/debugging/VerboseMockInvocationLogger.java src/main/java/org/mockito/internal/debugging/InvocationsPrinter.java src/main/java/org/mockito/internal/debugging/WarningsFinder.java src/main/java/org/mockito/internal/debugging/LocationImpl.java src/main/java/org/mockito/internal/debugging/WarningsPrinterImpl.java src/main/java/org/mockito/internal/debugging/Localized.java src/main/java/org/mockito/internal/MockitoCore.java src/main/java/org/mockito/internal/progress/MockingProgressImpl.java src/main/java/org/mockito/internal/progress/ArgumentMatcherStorageImpl.java src/main/java/org/mockito/internal/progress/ThreadSafeMockingProgress.java src/main/java/org/mockito/internal/progress/SequenceNumber.java src/main/java/org/mockito/internal/handler/MockHandlerImpl.java src/main/java/org/mockito/internal/handler/NotifiedMethodInvocationReport.java src/main/java/org/mockito/internal/handler/InvocationNotifierHandler.java src/main/java/org/mockito/internal/handler/NullResultGuardian.java src/main/java/org/mockito/internal/handler/MockHandlerFactory.java src/main/java/org/mockito/internal/runners/DefaultInternalRunner.java src/main/java/org/mockito/internal/runners/util/RunnerProvider.java src/main/java/org/mockito/internal/runners/util/TestMethodsFinder.java src/main/java/org/mockito/internal/runners/util/FailureDetector.java src/main/java/org/mockito/internal/runners/RunnerFactory.java src/main/java/org/mockito/internal/runners/StrictRunner.java src/main/java/org/mockito/internal/MockedStaticImpl.java src/main/java/org/mockito/internal/reporting/SmartPrinter.java src/main/java/org/mockito/internal/reporting/PrintSettings.java src/main/java/org/mockito/internal/reporting/Discrepancy.java src/main/java/org/mockito/internal/reporting/Pluralizer.java src/main/java/org/mockito/internal/framework/DefaultMockitoSession.java src/main/java/org/mockito/internal/framework/DefaultMockitoFramework.java src/main/java/org/mockito/internal/listeners/VerificationStartedNotifier.java src/main/java/org/mockito/internal/listeners/StubbingLookupNotifier.java src/main/java/org/mockito/internal/session/DefaultMockitoSessionBuilder.java src/main/java/org/mockito/internal/session/MockitoLoggerAdapter.java src/main/java/org/mockito/internal/session/MockitoSessionLoggerAdapter.java src/main/java/org/mockito/internal/InOrderImpl.java src/main/java/org/mockito/internal/MockedConstructionImpl.java src/main/java/org/mockito/internal/hamcrest/HamcrestArgumentMatcher.java src/main/java/org/mockito/internal/hamcrest/MatcherGenericTypeExtractor.java src/main/java/org/mockito/AdditionalMatchers.java src/main/java/org/mockito/exceptions/verification/opentest4j/ArgumentsAreDifferent.java src/main/java/org/mockito/exceptions/verification/junit/ArgumentsAreDifferent.java src/main/java/org/mockito/exceptions/verification/ArgumentsAreDifferent.java src/main/java/org/mockito/exceptions/verification/WantedButNotInvoked.java src/main/java/org/mockito/exceptions/verification/NeverWantedButInvoked.java src/main/java/org/mockito/exceptions/verification/TooManyActualInvocations.java src/main/java/org/mockito/exceptions/verification/NoInteractionsWanted.java src/main/java/org/mockito/exceptions/verification/MoreThanAllowedActualInvocations.java src/main/java/org/mockito/exceptions/verification/SmartNullPointerException.java src/main/java/org/mockito/exceptions/verification/TooFewActualInvocations.java src/main/java/org/mockito/exceptions/verification/VerificationInOrderFailure.java src/main/java/org/mockito/exceptions/base/MockitoAssertionError.java src/main/java/org/mockito/exceptions/base/MockitoException.java src/main/java/org/mockito/exceptions/base/MockitoSerializationIssue.java src/main/java/org/mockito/exceptions/base/MockitoInitializationException.java src/main/java/org/mockito/exceptions/misusing/MockitoConfigurationException.java src/main/java/org/mockito/exceptions/misusing/InvalidUseOfMatchersException.java src/main/java/org/mockito/exceptions/misusing/PotentialStubbingProblem.java src/main/java/org/mockito/exceptions/misusing/UnfinishedMockingSessionException.java src/main/java/org/mockito/exceptions/misusing/UnfinishedStubbingException.java src/main/java/org/mockito/exceptions/misusing/CannotVerifyStubOnlyMock.java src/main/java/org/mockito/exceptions/misusing/NullInsteadOfMockException.java src/main/java/org/mockito/exceptions/misusing/MissingMethodInvocationException.java src/main/java/org/mockito/exceptions/misusing/WrongTypeOfReturnValue.java src/main/java/org/mockito/exceptions/misusing/FriendlyReminderException.java src/main/java/org/mockito/exceptions/misusing/NotAMockException.java src/main/java/org/mockito/exceptions/misusing/UnnecessaryStubbingException.java src/main/java/org/mockito/exceptions/misusing/RedundantListenerException.java src/main/java/org/mockito/exceptions/misusing/UnfinishedVerificationException.java src/main/java/org/mockito/exceptions/misusing/InjectMocksException.java src/main/java/org/mockito/exceptions/misusing/CannotStubVoidMethodWithReturnValue.java src/main/java/org/mockito/ArgumentMatchers.java src/main/java/org/mockito/Mockito.java src/main/java/org/mockito/BDDMockito.java src/main/java/org/mockito/verification/Timeout.java src/main/java/org/mockito/verification/After.java src/main/java/org/mockito/verification/VerificationMode.java src/main/java/org/mockito/hamcrest/MockitoHamcrest.java src/main/java/org/mockito/AdditionalAnswers.java src/main/java/org/mockito/junit/MockitoJUnitRunner.java src/main/java/org/mockito/junit/MockitoJUnit.java src/main/java/org/mockito/plugins/MockMaker.java src/main/java/org/mockito/plugins/AnnotationEngine.java src/main/java/org/mockito/plugins/MemberAccessor.java src/main/java/org/mockito/MockitoAnnotations.java src/main/java/org/mockito/Answers.java src/main/java/org/mockito/ArgumentCaptor.java src/main/java/org/mockito/creation/instance/InstantiationException.java src/main/java/org/mockito/quality/Strictness.java src/main/java/org/mockito/mock/SerializableMode.java src/main/java/org/mockito/configuration/DefaultMockitoConfiguration.java src/main/java/org/mockito/MockedStatic.java src/main/java/org/mockito/codegen/InjectionBase.java src/main/java/org/mockito/listeners/MockCreationListener.java subprojects/errorprone/src/main/java/org/mockito/errorprone/bugpatterns/AbstractMockitoAnyForPrimitiveType.java subprojects/errorprone/src/main/java/org/mockito/errorprone/bugpatterns/MockitoAnyIncorrectPrimitiveType.java subprojects/errorprone/src/main/java/org/mockito/errorprone/bugpatterns/MockitoInternalUsage.java subprojects/errorprone/src/main/java/org/mockito/errorprone/bugpatterns/MockitoNotExtensible.java subprojects/errorprone/src/main/java/org/mockito/errorprone/bugpatterns/MockitoAnyClassWithPrimitiveType.java subprojects/junit-jupiter/src/main/java/org/mockito/junit/jupiter/MockitoExtension.java

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 17 of 109 files from the diff.
Other files ignored by Codecov

@@ -4,10 +4,12 @@
Loading
4 4
 */
5 5
package org.mockito.exceptions.verification;
6 6
7 +
import org.mockito.exceptions.base.MockitoAssertionError;
8 +
7 9
/**
8 10
 * @since 2.27.5
9 11
 */
10 -
public class TooFewActualInvocations extends TooLittleActualInvocations {
12 +
public class TooFewActualInvocations extends MockitoAssertionError {
11 13
12 14
    private static final long serialVersionUID = 1L;
13 15

@@ -36,11 +36,6 @@
Loading
36 36
        return wanted;
37 37
    }
38 38
39 -
    @Override
40 -
    public InvocationMatcher getWanted() {
41 -
        return wanted;
42 -
    }
43 -
44 39
    private void assertWantedIsVerifiable() {
45 40
        if (wanted == null) {
46 41
            return;

@@ -4,7 +4,6 @@
Loading
4 4
 */
5 5
package org.mockito.configuration;
6 6
7 -
import org.mockito.internal.configuration.InjectingAnnotationEngine;
8 7
import org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues;
9 8
import org.mockito.stubbing.Answer;
10 9
@@ -22,13 +21,6 @@
Loading
22 21
        return new ReturnsEmptyValues();
23 22
    }
24 23
25 -
    /* (non-Javadoc)
26 -
     * @see org.mockito.IMockitoConfiguration#getAnnotationEngine()
27 -
     */
28 -
    public AnnotationEngine getAnnotationEngine() {
29 -
        return new InjectingAnnotationEngine();
30 -
    }
31 -
32 24
    /* (non-Javadoc)
33 25
     * @see org.mockito.configuration.IMockitoConfiguration#cleansStackTrace()
34 26
     */

@@ -38,14 +38,6 @@
Loading
38 38
        verify(verification, times(1));
39 39
    }
40 40
41 -
    /**
42 -
     * See {@link Mockito#verify(Object, VerificationMode)}.
43 -
     *
44 -
     * @deprecated Please use {@link MockedStatic#verify(Verification, VerificationMode) instead
45 -
     */
46 -
    @Deprecated
47 -
    void verify(VerificationMode mode, Verification verification);
48 -
49 41
    /**
50 42
     * See {@link Mockito#verify(Object, VerificationMode)}.
51 43
     */

@@ -21,8 +21,7 @@
Loading
21 21
/**
22 22
 * See {@link MockitoAnnotations}
23 23
 */
24 -
public class InjectingAnnotationEngine
25 -
        implements AnnotationEngine, org.mockito.configuration.AnnotationEngine {
24 +
public class InjectingAnnotationEngine implements AnnotationEngine {
26 25
    private final AnnotationEngine delegate = new IndependentAnnotationEngine();
27 26
    private final AnnotationEngine spyAnnotationEngine = new SpyAnnotationEngine();
28 27

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Learn more Showing 2 files with coverage changes found.

Changes in src/main/java/org/mockito/internal/exceptions/ExceptionIncludingMockitoWarnings.java
-2
+2
Loading file...
Changes in src/main/java/org/mockito/internal/invocation/DefaultInvocationFactory.java
-2
+2
Loading file...
Files Complexity Coverage
main/java/org/mockito -69.00% 87.68% 0.81% 86.43%
Project Totals (318 files) 87.57% 86.41%
Loading