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
src/main/java/org/mockito/AdditionalAnswers.java 100.00% 100.00%
src/main/java/org/mockito/AdditionalMatchers.java 100.00% 100.00%
src/main/java/org/mockito/Answers.java -1.00% 100.00% +8.33% 100.00%
src/main/java/org/mockito/ArgumentCaptor.java 100.00% 100.00%
src/main/java/org/mockito/ArgumentMatchers.java -10.00% 98.00% -0.11% 98.97%
src/main/java/org/mockito/BDDMockito.java 83.33% +1.32% 90.00%
src/main/java/org/mockito/MockedStatic.java 100.00% 100.00%
src/main/java/org/mockito/Mockito.java -2.00% 93.22% 0.96% 92.21%
src/main/java/org/mockito/MockitoAnnotations.java 66.67% 45.45%
src/main/java/org/mockito/codegen/InjectionBase.java 0.00% 0.00%
src/main/java/org/mockito/configuration/DefaultMockitoConfiguration.java -1.00% 100.00% 100.00%
src/main/java/org/mockito/creation/instance/InstantiationException.java 100.00% 100.00%
src/main/java/org/mockito/exceptions/base/MockitoAssertionError.java 100.00% 100.00%
src/main/java/org/mockito/exceptions/base/MockitoException.java 100.00% 100.00%
...c/main/java/org/mockito/exceptions/base/MockitoInitializationException.java 50.00% 50.00%
src/main/java/org/mockito/exceptions/base/MockitoSerializationIssue.java 100.00% 100.00%
...va/org/mockito/exceptions/misusing/CannotStubVoidMethodWithReturnValue.java 100.00% 100.00%
src/main/java/org/mockito/exceptions/misusing/CannotVerifyStubOnlyMock.java 100.00% 100.00%
...rc/main/java/org/mockito/exceptions/misusing/FriendlyReminderException.java 100.00% 100.00%
src/main/java/org/mockito/exceptions/misusing/InjectMocksException.java 100.00% 100.00%
...ain/java/org/mockito/exceptions/misusing/InvalidUseOfMatchersException.java 100.00% 100.00%
.../java/org/mockito/exceptions/misusing/MissingMethodInvocationException.java 100.00% 100.00%
...ain/java/org/mockito/exceptions/misusing/MockitoConfigurationException.java 0.00% 0.00%
src/main/java/org/mockito/exceptions/misusing/NotAMockException.java 100.00% 100.00%
...c/main/java/org/mockito/exceptions/misusing/NullInsteadOfMockException.java 100.00% 100.00%
src/main/java/org/mockito/exceptions/misusing/PotentialStubbingProblem.java 100.00% 100.00%
...c/main/java/org/mockito/exceptions/misusing/RedundantListenerException.java 100.00% 100.00%
...java/org/mockito/exceptions/misusing/UnfinishedMockingSessionException.java 100.00% 100.00%
.../main/java/org/mockito/exceptions/misusing/UnfinishedStubbingException.java 100.00% 100.00%
...n/java/org/mockito/exceptions/misusing/UnfinishedVerificationException.java 100.00% 100.00%
...main/java/org/mockito/exceptions/misusing/UnnecessaryStubbingException.java 100.00% 100.00%
src/main/java/org/mockito/exceptions/misusing/WrongTypeOfReturnValue.java 100.00% 100.00%
...rc/main/java/org/mockito/exceptions/verification/ArgumentsAreDifferent.java 66.67% 80.00%
...a/org/mockito/exceptions/verification/MoreThanAllowedActualInvocations.java 100.00% 100.00%
...rc/main/java/org/mockito/exceptions/verification/NeverWantedButInvoked.java 100.00% 100.00%
src/main/java/org/mockito/exceptions/verification/NoInteractionsWanted.java 100.00% 100.00%
...ain/java/org/mockito/exceptions/verification/SmartNullPointerException.java 100.00% 100.00%
.../main/java/org/mockito/exceptions/verification/TooFewActualInvocations.java 100.00% 100.00%
...main/java/org/mockito/exceptions/verification/TooManyActualInvocations.java 100.00% 100.00%
...in/java/org/mockito/exceptions/verification/VerificationInOrderFailure.java 100.00% 100.00%
src/main/java/org/mockito/exceptions/verification/WantedButNotInvoked.java 100.00% 100.00%
...n/java/org/mockito/exceptions/verification/junit/ArgumentsAreDifferent.java 25.00% 66.67%
...a/org/mockito/exceptions/verification/opentest4j/ArgumentsAreDifferent.java 50.00% 77.78%
src/main/java/org/mockito/hamcrest/MockitoHamcrest.java 90.00% 90.91%
src/main/java/org/mockito/internal/InOrderImpl.java 100.00% 100.00%
src/main/java/org/mockito/internal/MockedConstructionImpl.java 75.00% 72.22%
src/main/java/org/mockito/internal/MockedStaticImpl.java -1.00% 73.33% +2.04% 78.67%
src/main/java/org/mockito/internal/MockitoCore.java 93.62% 93.28%
...main/java/org/mockito/internal/configuration/CaptorAnnotationProcessor.java 100.00% 100.00%
src/main/java/org/mockito/internal/configuration/ClassPathLoader.java 100.00% 54.55%
...rc/main/java/org/mockito/internal/configuration/DefaultInjectionEngine.java 100.00% 100.00%
src/main/java/org/mockito/internal/configuration/GlobalConfiguration.java -2.00% 100.00% 100.00%
...in/java/org/mockito/internal/configuration/IndependentAnnotationEngine.java 93.33% 85.37%
...main/java/org/mockito/internal/configuration/InjectingAnnotationEngine.java 93.33% 89.13%
...c/main/java/org/mockito/internal/configuration/MockAnnotationProcessor.java 92.86% 96.97%
src/main/java/org/mockito/internal/configuration/SpyAnnotationEngine.java 96.00% 98.41%
...java/org/mockito/internal/configuration/injection/ConstructorInjection.java 100.00% 100.00%
...c/main/java/org/mockito/internal/configuration/injection/MockInjection.java 100.00% 100.00%
...ava/org/mockito/internal/configuration/injection/MockInjectionStrategy.java 100.00% 100.00%
...rg/mockito/internal/configuration/injection/PropertyAndSetterInjection.java 100.00% 100.00%
...rg/mockito/internal/configuration/injection/SpyOnInjectedFieldsHandler.java 80.00% 84.21%
...ckito/internal/configuration/injection/filter/NameBasedCandidateFilter.java 100.00% 100.00%
...va/org/mockito/internal/configuration/injection/filter/OngoingInjector.java 100.00% 100.00%
...to/internal/configuration/injection/filter/TerminalMockCandidateFilter.java 100.00% 84.62%
...ckito/internal/configuration/injection/filter/TypeBasedCandidateFilter.java 100.00% 100.00%
...rg/mockito/internal/configuration/injection/scanner/InjectMocksScanner.java 100.00% 100.00%
.../java/org/mockito/internal/configuration/injection/scanner/MockScanner.java 92.86% 95.24%
.../java/org/mockito/internal/configuration/plugins/DefaultMockitoPlugins.java -1.00% 85.71% -1.25% 89.66%
...in/java/org/mockito/internal/configuration/plugins/DefaultPluginSwitch.java 100.00% 100.00%
.../main/java/org/mockito/internal/configuration/plugins/PluginFileReader.java 100.00% 100.00%
src/main/java/org/mockito/internal/configuration/plugins/PluginFinder.java 77.78% 85.19%
...main/java/org/mockito/internal/configuration/plugins/PluginInitializer.java 66.67% 67.44%
src/main/java/org/mockito/internal/configuration/plugins/PluginLoader.java 100.00% 80.65%
...rc/main/java/org/mockito/internal/configuration/plugins/PluginRegistry.java -1.00% 100.00% 100.00%
src/main/java/org/mockito/internal/configuration/plugins/Plugins.java 100.00% 100.00%
src/main/java/org/mockito/internal/creation/DelegatingMethod.java 58.82% 75.00%
src/main/java/org/mockito/internal/creation/MockSettingsImpl.java 86.54% 87.63%
src/main/java/org/mockito/internal/creation/SuspendMethod.java 83.33% 83.33%
...ernal/creation/bytebuddy/ByteBuddyCrossClassLoaderSerializationSupport.java 100.00% 69.77%
...c/main/java/org/mockito/internal/creation/bytebuddy/ByteBuddyMockMaker.java 81.82% 80.95%
...rc/main/java/org/mockito/internal/creation/bytebuddy/BytecodeGenerator.java 100.00% 100.00%
.../java/org/mockito/internal/creation/bytebuddy/InlineByteBuddyMockMaker.java 92.86% 84.62%
...n/java/org/mockito/internal/creation/bytebuddy/InlineBytecodeGenerator.java 77.55% 83.55%
...g/mockito/internal/creation/bytebuddy/InlineDelegateByteBuddyMockMaker.java 60.71% 68.63%
src/main/java/org/mockito/internal/creation/bytebuddy/MockFeatures.java 100.00% 100.00%
src/main/java/org/mockito/internal/creation/bytebuddy/MockMethodAdvice.java 65.71% 79.89%
...ain/java/org/mockito/internal/creation/bytebuddy/MockMethodInterceptor.java 100.00% 85.19%
src/main/java/org/mockito/internal/creation/bytebuddy/ModuleHandler.java 100.00% 22.82%
...ava/org/mockito/internal/creation/bytebuddy/SubclassByteBuddyMockMaker.java 66.67% 67.57%
...java/org/mockito/internal/creation/bytebuddy/SubclassBytecodeGenerator.java 68.52% 80.79%
...n/java/org/mockito/internal/creation/bytebuddy/SubclassInjectionLoader.java 75.00% 57.45%
...a/org/mockito/internal/creation/bytebuddy/TypeCachingBytecodeGenerator.java 88.89% 77.27%
src/main/java/org/mockito/internal/creation/bytebuddy/TypeSupport.java 75.00% 78.57%
...va/org/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.java 0.00% 0.00%
...in/java/org/mockito/internal/creation/instance/ConstructorInstantiator.java 94.74% 96.20%
...ava/org/mockito/internal/creation/instance/DefaultInstantiatorProvider.java 100.00% 100.00%
...main/java/org/mockito/internal/creation/instance/ObjenesisInstantiator.java 100.00% 100.00%
src/main/java/org/mockito/internal/creation/proxy/InvokeDefaultProxy.java 50.00% 10.53%
src/main/java/org/mockito/internal/creation/proxy/MethodHandleProxy.java 100.00% 100.00%
src/main/java/org/mockito/internal/creation/proxy/ProxyMockMaker.java 80.00% 78.26%
src/main/java/org/mockito/internal/creation/proxy/ProxyRealMethod.java 50.00% 57.14%
src/main/java/org/mockito/internal/creation/settings/CreationSettings.java 100.00% 100.00%
src/main/java/org/mockito/internal/debugging/InvocationsPrinter.java 100.00% 100.00%
src/main/java/org/mockito/internal/debugging/Localized.java 100.00% 100.00%
src/main/java/org/mockito/internal/debugging/LocationImpl.java 100.00% 100.00%
src/main/java/org/mockito/internal/debugging/LoggingListener.java 100.00% 100.00%
...c/main/java/org/mockito/internal/debugging/VerboseMockInvocationLogger.java 92.31% 97.44%
src/main/java/org/mockito/internal/debugging/WarningsFinder.java 85.71% 96.00%
src/main/java/org/mockito/internal/debugging/WarningsPrinterImpl.java 0.00% 0.00%
...java/org/mockito/internal/exceptions/ExceptionIncludingMockitoWarnings.java 0.00% -100.00% 0.00%
src/main/java/org/mockito/internal/exceptions/Reporter.java 85.71% 90.73%
...org/mockito/internal/exceptions/stacktrace/ConditionalStackTraceFilter.java 100.00% 100.00%
...va/org/mockito/internal/exceptions/stacktrace/DefaultStackTraceCleaner.java 100.00% 100.00%
...ockito/internal/exceptions/stacktrace/DefaultStackTraceCleanerProvider.java 100.00% 100.00%
.../main/java/org/mockito/internal/exceptions/stacktrace/StackTraceFilter.java 66.67% 80.95%
src/main/java/org/mockito/internal/exceptions/util/ScenarioPrinter.java 100.00% 100.00%
src/main/java/org/mockito/internal/framework/DefaultMockitoFramework.java 81.82% 78.95%
src/main/java/org/mockito/internal/framework/DefaultMockitoSession.java 100.00% 87.50%
src/main/java/org/mockito/internal/hamcrest/HamcrestArgumentMatcher.java 100.00% 100.00%
...rc/main/java/org/mockito/internal/hamcrest/MatcherGenericTypeExtractor.java 100.00% 100.00%
src/main/java/org/mockito/internal/handler/InvocationNotifierHandler.java 100.00% 100.00%
src/main/java/org/mockito/internal/handler/MockHandlerFactory.java 100.00% 100.00%
src/main/java/org/mockito/internal/handler/MockHandlerImpl.java 100.00% 100.00%
.../main/java/org/mockito/internal/handler/NotifiedMethodInvocationReport.java 50.00% 62.07%
src/main/java/org/mockito/internal/handler/NullResultGuardian.java 100.00% 100.00%
src/main/java/org/mockito/internal/invocation/ArgumentsProcessor.java 70.59% 83.33%
src/main/java/org/mockito/internal/invocation/DefaultInvocationFactory.java 87.50% -15.38% 84.62%
src/main/java/org/mockito/internal/invocation/InterceptedInvocation.java 78.79% 78.72%
src/main/java/org/mockito/internal/invocation/InvocationComparator.java 100.00% 100.00%
src/main/java/org/mockito/internal/invocation/InvocationMarker.java 100.00% 100.00%
src/main/java/org/mockito/internal/invocation/InvocationMatcher.java 96.15% 98.00%
src/main/java/org/mockito/internal/invocation/InvocationsFinder.java 100.00% 100.00%
...c/main/java/org/mockito/internal/invocation/MatcherApplicationStrategy.java 100.00% 100.00%
src/main/java/org/mockito/internal/invocation/MatchersBinder.java 100.00% 100.00%
src/main/java/org/mockito/internal/invocation/RealMethod.java ø 93.75%
src/main/java/org/mockito/internal/invocation/SerializableMethod.java 48.00% 46.30%
src/main/java/org/mockito/internal/invocation/StubInfoImpl.java 100.00% 100.00%
src/main/java/org/mockito/internal/invocation/TypeSafeMatching.java 92.31% 88.24%
.../main/java/org/mockito/internal/invocation/finder/AllInvocationsFinder.java 80.00% 87.50%
...ava/org/mockito/internal/invocation/finder/VerifiableInvocationsFinder.java 100.00% 100.00%
.../main/java/org/mockito/internal/invocation/mockref/MockStrongReference.java 75.00% 75.00%
...rc/main/java/org/mockito/internal/invocation/mockref/MockWeakReference.java 100.00% 100.00%
src/main/java/org/mockito/internal/junit/ArgMismatchFinder.java 100.00% 100.00%
src/main/java/org/mockito/internal/junit/DefaultStubbingLookupListener.java 100.00% 97.06%
src/main/java/org/mockito/internal/junit/DefaultTestFinishedEvent.java 100.00% 100.00%
src/main/java/org/mockito/internal/junit/ExceptionFactory.java 100.00% 100.00%
src/main/java/org/mockito/internal/junit/JUnitRule.java 75.00% 87.50%
src/main/java/org/mockito/internal/junit/JUnitSessionStore.java 100.00% 100.00%
src/main/java/org/mockito/internal/junit/JUnitTestRule.java 75.00% 87.50%
src/main/java/org/mockito/internal/junit/MismatchReportingTestListener.java 100.00% 100.00%
src/main/java/org/mockito/internal/junit/NoOpTestListener.java 100.00% 100.00%
src/main/java/org/mockito/internal/junit/StrictStubsRunnerTestListener.java 100.00% 100.00%
src/main/java/org/mockito/internal/junit/StubbingArgMismatches.java 100.00% 100.00%
src/main/java/org/mockito/internal/junit/StubbingHint.java 100.00% 100.00%
src/main/java/org/mockito/internal/junit/UniversalTestListener.java 92.86% 94.59%
src/main/java/org/mockito/internal/junit/UnnecessaryStubbingsReporter.java 100.00% 100.00%
src/main/java/org/mockito/internal/junit/UnusedStubbings.java 72.73% 76.00%
src/main/java/org/mockito/internal/junit/UnusedStubbingsFinder.java 100.00% 100.00%
src/main/java/org/mockito/internal/junit/VerificationCollectorImpl.java 100.00% 97.67%
src/main/java/org/mockito/internal/listeners/StubbingLookupNotifier.java 100.00% 100.00%
...c/main/java/org/mockito/internal/listeners/VerificationStartedNotifier.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/And.java 80.00% 83.33%
src/main/java/org/mockito/internal/matchers/Any.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/ArrayEquals.java 61.29% 70.00%
src/main/java/org/mockito/internal/matchers/CapturingMatcher.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/CompareEqual.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/CompareTo.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/Contains.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/EndsWith.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/Equality.java 93.75% 92.86%
src/main/java/org/mockito/internal/matchers/Equals.java 82.35% 86.67%
src/main/java/org/mockito/internal/matchers/EqualsWithDelta.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/Find.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/GreaterOrEqual.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/GreaterThan.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/InstanceOf.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/LessOrEqual.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/LessThan.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/LocalizedMatcher.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/Matches.java 83.33% 85.71%
src/main/java/org/mockito/internal/matchers/Not.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/NotNull.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/Null.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/Or.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/Same.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/StartsWith.java 100.00% 100.00%
...rc/main/java/org/mockito/internal/matchers/apachecommons/EqualsBuilder.java 67.41% 66.06%
...main/java/org/mockito/internal/matchers/apachecommons/ReflectionEquals.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/text/FormattedText.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/text/MatcherToString.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/text/MatchersPrinter.java 100.00% 100.00%
src/main/java/org/mockito/internal/matchers/text/ValuePrinter.java 85.19% 84.85%
src/main/java/org/mockito/internal/progress/ArgumentMatcherStorageImpl.java 100.00% 100.00%
src/main/java/org/mockito/internal/progress/MockingProgressImpl.java 97.22% 97.67%
src/main/java/org/mockito/internal/progress/SequenceNumber.java 100.00% 100.00%
src/main/java/org/mockito/internal/progress/ThreadSafeMockingProgress.java 100.00% 100.00%
src/main/java/org/mockito/internal/reporting/Discrepancy.java 100.00% 100.00%
src/main/java/org/mockito/internal/reporting/Pluralizer.java 100.00% 100.00%
src/main/java/org/mockito/internal/reporting/PrintSettings.java 100.00% 100.00%
src/main/java/org/mockito/internal/reporting/SmartPrinter.java 100.00% 100.00%
src/main/java/org/mockito/internal/runners/DefaultInternalRunner.java 100.00% 100.00%
src/main/java/org/mockito/internal/runners/RunnerFactory.java 83.33% 78.95%
src/main/java/org/mockito/internal/runners/StrictRunner.java 83.33% 94.12%
src/main/java/org/mockito/internal/runners/util/FailureDetector.java 100.00% 100.00%
src/main/java/org/mockito/internal/runners/util/RunnerProvider.java 66.67% 53.85%
src/main/java/org/mockito/internal/runners/util/TestMethodsFinder.java 100.00% 100.00%
...rc/main/java/org/mockito/internal/session/DefaultMockitoSessionBuilder.java 93.33% 96.15%
src/main/java/org/mockito/internal/session/MockitoLoggerAdapter.java 100.00% 100.00%
src/main/java/org/mockito/internal/session/MockitoSessionLoggerAdapter.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/BaseStubbing.java 100.00% 93.75%
src/main/java/org/mockito/internal/stubbing/ConsecutiveStubbing.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/DefaultLenientStubber.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/DoAnswerStyleStubbing.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/InvocationContainerImpl.java 88.57% 95.16%
src/main/java/org/mockito/internal/stubbing/OngoingStubbingImpl.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/StrictnessSelector.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/StubbedInvocationMatcher.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/StubberImpl.java 95.00% 93.02%
src/main/java/org/mockito/internal/stubbing/StubbingComparator.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/UnusedStubbingReporting.java 100.00% 100.00%
...ain/java/org/mockito/internal/stubbing/answers/AbstractThrowsException.java 100.00% 100.00%
.../java/org/mockito/internal/stubbing/answers/AnswerFunctionalInterfaces.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/answers/AnswersWithDelay.java 75.00% 88.89%
src/main/java/org/mockito/internal/stubbing/answers/CallsRealMethods.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/answers/ClonesArguments.java 100.00% 100.00%
...main/java/org/mockito/internal/stubbing/answers/DefaultAnswerValidator.java 75.00% 88.89%
src/main/java/org/mockito/internal/stubbing/answers/DoesNothing.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/answers/InvocationInfo.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/answers/Returns.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/answers/ReturnsArgumentAt.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/answers/ReturnsElementsOf.java 100.00% 100.00%
src/main/java/org/mockito/internal/stubbing/answers/ThrowsException.java 100.00% 100.00%
...java/org/mockito/internal/stubbing/answers/ThrowsExceptionForClassType.java 100.00% 100.00%
.../java/org/mockito/internal/stubbing/defaultanswers/ForwardsInvocations.java 100.00% 100.00%
.../org/mockito/internal/stubbing/defaultanswers/GloballyConfiguredAnswer.java 100.00% 100.00%
...ito/internal/stubbing/defaultanswers/RetrieveGenericsForDefaultAnswers.java 95.45% 98.08%
...ain/java/org/mockito/internal/stubbing/defaultanswers/ReturnsDeepStubs.java 94.44% 98.11%
...n/java/org/mockito/internal/stubbing/defaultanswers/ReturnsEmptyValues.java 96.97% 96.97%
...rc/main/java/org/mockito/internal/stubbing/defaultanswers/ReturnsMocks.java 100.00% 100.00%
...va/org/mockito/internal/stubbing/defaultanswers/ReturnsMoreEmptyValues.java 100.00% 100.00%
...in/java/org/mockito/internal/stubbing/defaultanswers/ReturnsSmartNulls.java 100.00% 100.00%
...in/java/org/mockito/internal/stubbing/defaultanswers/TriesToReturnSelf.java 100.00% 100.00%
src/main/java/org/mockito/internal/util/Checks.java 100.00% 100.00%
src/main/java/org/mockito/internal/util/ConsoleMockitoLogger.java 100.00% 100.00%
src/main/java/org/mockito/internal/util/DefaultMockingDetails.java 100.00% 100.00%
src/main/java/org/mockito/internal/util/JavaEightUtil.java 90.00% 66.67%
src/main/java/org/mockito/internal/util/KotlinInlineClassUtil.java 90.91% 80.00%
src/main/java/org/mockito/internal/util/MockCreationValidator.java 72.22% 72.00%
src/main/java/org/mockito/internal/util/MockNameImpl.java 100.00% 100.00%
src/main/java/org/mockito/internal/util/MockUtil.java 96.77% 98.15%
src/main/java/org/mockito/internal/util/ObjectMethodsGuru.java 100.00% 100.00%
src/main/java/org/mockito/internal/util/Platform.java 88.24% 89.19%
src/main/java/org/mockito/internal/util/Primitives.java 87.50% 97.22%
src/main/java/org/mockito/internal/util/StringUtil.java 100.00% 100.00%
src/main/java/org/mockito/internal/util/Timer.java 72.73% 85.71%
...ava/org/mockito/internal/util/collections/HashCodeAndEqualsMockWrapper.java 54.55% 55.56%
...in/java/org/mockito/internal/util/collections/HashCodeAndEqualsSafeSet.java 81.25% 88.24%
src/main/java/org/mockito/internal/util/collections/IdentitySet.java 100.00% 100.00%
src/main/java/org/mockito/internal/util/collections/Iterables.java 75.00% 75.00%
src/main/java/org/mockito/internal/util/collections/ListUtil.java 100.00% 100.00%
src/main/java/org/mockito/internal/util/collections/Sets.java 60.00% 50.00%
src/main/java/org/mockito/internal/util/io/IOUtil.java 100.00% 72.00%
src/main/java/org/mockito/internal/util/reflection/BeanPropertySetter.java 100.00% 82.76%
...in/java/org/mockito/internal/util/reflection/FieldInitializationReport.java 83.33% 88.89%
src/main/java/org/mockito/internal/util/reflection/FieldInitializer.java 100.00% 89.57%
src/main/java/org/mockito/internal/util/reflection/FieldReader.java 100.00% 100.00%
src/main/java/org/mockito/internal/util/reflection/Fields.java 77.78% 83.33%
src/main/java/org/mockito/internal/util/reflection/GenericMaster.java 100.00% 100.00%
.../main/java/org/mockito/internal/util/reflection/GenericMetadataSupport.java 88.37% 84.38%
...rc/main/java/org/mockito/internal/util/reflection/GenericTypeExtractor.java 91.67% 95.65%
src/main/java/org/mockito/internal/util/reflection/InstanceField.java 47.37% 43.33%
...ava/org/mockito/internal/util/reflection/InstrumentationMemberAccessor.java 83.33% 86.50%
src/main/java/org/mockito/internal/util/reflection/LenientCopyTool.java 100.00% 100.00%
...rc/main/java/org/mockito/internal/util/reflection/ModuleMemberAccessor.java 87.50% 81.25%
...ain/java/org/mockito/internal/util/reflection/ReflectionMemberAccessor.java 100.00% 77.78%
...rc/main/java/org/mockito/internal/util/reflection/SuperTypesLastSorter.java 100.00% 100.00%
src/main/java/org/mockito/internal/verification/AtLeast.java 85.71% 93.75%
src/main/java/org/mockito/internal/verification/AtMost.java 100.00% 100.00%
src/main/java/org/mockito/internal/verification/Calls.java 80.00% 92.31%
...in/java/org/mockito/internal/verification/DefaultRegisteredInvocations.java 85.71% 95.45%
src/main/java/org/mockito/internal/verification/Description.java 100.00% 66.67%
src/main/java/org/mockito/internal/verification/InOrderContextImpl.java 100.00% 100.00%
src/main/java/org/mockito/internal/verification/InOrderWrapper.java 100.00% 100.00%
.../main/java/org/mockito/internal/verification/MockAwareVerificationMode.java 100.00% 100.00%
src/main/java/org/mockito/internal/verification/NoInteractions.java 100.00% 100.00%
src/main/java/org/mockito/internal/verification/NoMoreInteractions.java 100.00% 100.00%
src/main/java/org/mockito/internal/verification/Only.java 100.00% 100.00%
...main/java/org/mockito/internal/verification/SingleRegisteredInvocation.java 71.43% 66.67%
src/main/java/org/mockito/internal/verification/Times.java 100.00% 100.00%
src/main/java/org/mockito/internal/verification/VerificationDataImpl.java -1.00% 100.00% 100.00%
src/main/java/org/mockito/internal/verification/VerificationEventImpl.java 100.00% 100.00%
...rc/main/java/org/mockito/internal/verification/VerificationModeFactory.java 100.00% 100.00%
...c/main/java/org/mockito/internal/verification/VerificationOverTimeImpl.java 94.12% 91.89%
src/main/java/org/mockito/internal/verification/VerificationWrapper.java 88.89% 93.33%
...va/org/mockito/internal/verification/VerificationWrapperInOrderWrapper.java 100.00% 100.00%
...java/org/mockito/internal/verification/api/VerificationDataInOrderImpl.java 100.00% 100.00%
...rg/mockito/internal/verification/argumentmatching/ArgumentMatchingTool.java 100.00% 100.00%
...ain/java/org/mockito/internal/verification/checkers/AtLeastDiscrepancy.java 100.00% 100.00%
...kito/internal/verification/checkers/AtLeastXNumberOfInvocationsChecker.java 100.00% 100.00%
...va/org/mockito/internal/verification/checkers/MissingInvocationChecker.java 83.33% 88.00%
.../org/mockito/internal/verification/checkers/NumberOfInvocationsChecker.java 100.00% 100.00%
src/main/java/org/mockito/junit/MockitoJUnit.java 100.00% 100.00%
src/main/java/org/mockito/junit/MockitoJUnitRunner.java 100.00% 100.00%
src/main/java/org/mockito/listeners/MockCreationListener.java 100.00% 100.00%
src/main/java/org/mockito/mock/SerializableMode.java 100.00% 100.00%
src/main/java/org/mockito/plugins/AnnotationEngine.java ø 100.00%
src/main/java/org/mockito/plugins/MemberAccessor.java 0.00% 0.00%
src/main/java/org/mockito/plugins/MockMaker.java 75.00% 87.50%
src/main/java/org/mockito/quality/Strictness.java 100.00% 100.00%
src/main/java/org/mockito/verification/After.java 100.00% 100.00%
src/main/java/org/mockito/verification/Timeout.java 75.00% 85.71%
src/main/java/org/mockito/verification/VerificationMode.java 0.00% 0.00%
.../org/mockito/errorprone/bugpatterns/AbstractMockitoAnyForPrimitiveType.java 53.85% 71.43%
...va/org/mockito/errorprone/bugpatterns/MockitoAnyClassWithPrimitiveType.java 100.00% 100.00%
...va/org/mockito/errorprone/bugpatterns/MockitoAnyIncorrectPrimitiveType.java 100.00% 100.00%
.../src/main/java/org/mockito/errorprone/bugpatterns/MockitoInternalUsage.java 100.00% 100.00%
.../src/main/java/org/mockito/errorprone/bugpatterns/MockitoNotExtensible.java 100.00% 100.00%
...junit-jupiter/src/main/java/org/mockito/junit/jupiter/MockitoExtension.java 75.00% 89.74%
Project Totals (318 files) 87.57% 86.41%
Loading