Index

A B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

O

24. One-liner stubs (Since 1.9.0) - Search tag in class org.mockito.Mockito
Section
ObjectMethodsGuru - Class in org.mockito.internal.util
 
of(Iterable<Object>) - Static method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
of(Object) - Static method in class org.mockito.internal.util.collections.HashCodeAndEqualsMockWrapper
 
of(Object...) - Static method in class org.mockito.internal.util.collections.HashCodeAndEqualsSafeSet
 
onField(Field, Object) - Static method in class org.mockito.internal.configuration.injection.MockInjection
Create a new configuration setup for a field
onFields(Set<Field>, Object) - Static method in class org.mockito.internal.configuration.injection.MockInjection
Create a new configuration setup for fields
OngoingInjector - Interface in org.mockito.internal.configuration.injection.filter
Allow the ongoing injection of a mock candidate.
OngoingStubbing<T> - Interface in org.mockito.stubbing
Simply put: "When the x method is called then return y".
OngoingStubbingImpl<T> - Class in org.mockito.internal.stubbing
 
OngoingStubbingImpl(InvocationContainerImpl) - Constructor for class org.mockito.internal.stubbing.OngoingStubbingImpl
 
onInjection(Object, Class<?>, Set<Field>, Set<Object>) - Method in class org.mockito.internal.configuration.InjectingAnnotationEngine
 
only() - Static method in class org.mockito.internal.verification.VerificationModeFactory
 
only() - Method in class org.mockito.internal.verification.VerificationWrapper
 
only() - Static method in class org.mockito.Mockito
Allows checking if given method was the only one invoked.
only() - Method in interface org.mockito.verification.VerificationAfterDelay
Verifies that there the given method is invoked and is the only method invoked.
only() - Method in interface org.mockito.verification.VerificationWithTimeout
Allows checking if given method was the only one invoked.
Only - Class in org.mockito.internal.verification
 
Only() - Constructor for class org.mockito.internal.verification.Only
 
onlyVoidMethodsCanBeSetToDoNothing() - Static method in class org.mockito.internal.exceptions.Reporter
 
onMockCreated(Object, MockCreationSettings) - Method in class org.mockito.internal.junit.MismatchReportingTestListener
 
onMockCreated(Object, MockCreationSettings) - Method in class org.mockito.internal.junit.NoOpTestListener
 
onMockCreated(Object, MockCreationSettings) - Method in class org.mockito.internal.junit.StrictStubsRunnerTestListener
 
onMockCreated(Object, MockCreationSettings) - Method in class org.mockito.internal.junit.UniversalTestListener
 
onMockCreated(Object, MockCreationSettings) - Method in class org.mockito.internal.junit.UnnecessaryStubbingsReporter
 
onMockCreated(Object, MockCreationSettings) - Method in interface org.mockito.listeners.MockCreationListener
Mock object was just created.
onStaticMockCreated(Class<?>, MockCreationSettings) - Method in interface org.mockito.listeners.MockCreationListener
Static mock object was just created.
onStubbingLookup(StubbingLookupEvent) - Method in interface org.mockito.listeners.StubbingLookupListener
Called by the framework when Mockito looked up an answer for invocation on a mock.
onVerification(VerificationEvent) - Method in interface org.mockito.listeners.VerificationListener
Called after a verification happened.
onVerificationStarted(VerificationStartedEvent) - Method in interface org.mockito.listeners.VerificationStartedListener
Triggered when the user calls Mockito.verify().
openMocks(Object) - Static method in class org.mockito.MockitoAnnotations
Initializes objects annotated with Mockito annotations for given testClass: @Mock, @Spy, @Captor, @InjectMocks
or(boolean, boolean) - Static method in class org.mockito.AdditionalMatchers
boolean argument that matches any of the given argument matchers.
or(byte, byte) - Static method in class org.mockito.AdditionalMatchers
byte argument that matches any of the given argument matchers.
or(char, char) - Static method in class org.mockito.AdditionalMatchers
char argument that matches any of the given argument matchers.
or(double, double) - Static method in class org.mockito.AdditionalMatchers
double argument that matches any of the given argument matchers.
or(float, float) - Static method in class org.mockito.AdditionalMatchers
float argument that matches any of the given argument matchers.
or(int, int) - Static method in class org.mockito.AdditionalMatchers
int argument that matches any of the given argument matchers.
or(long, long) - Static method in class org.mockito.AdditionalMatchers
long argument that matches any of the given argument matchers.
or(short, short) - Static method in class org.mockito.AdditionalMatchers
short argument that matches any of the given argument matchers.
or(T, T) - Static method in class org.mockito.AdditionalMatchers
Object argument that matches any of the given argument matchers.
Or - Class in org.mockito.internal.matchers
 
Or(ArgumentMatcher<?>, ArgumentMatcher<?>) - Constructor for class org.mockito.internal.matchers.Or
 
org.mockito - package org.mockito
Mockito is a mock library for java - see Mockito class for usage.
org.mockito.codegen - package org.mockito.codegen
 
org.mockito.configuration - package org.mockito.configuration
Mockito configuration utilities.
org.mockito.creation.instance - package org.mockito.creation.instance
 
org.mockito.exceptions.base - package org.mockito.exceptions.base
Base classes for exceptions and errors, stack trace filtering/removing logic.
org.mockito.exceptions.misusing - package org.mockito.exceptions.misusing
Exceptions thrown when Mockito is misused.
org.mockito.exceptions.stacktrace - package org.mockito.exceptions.stacktrace
Stack trace filtering / cleaning public APIs.
org.mockito.exceptions.verification - package org.mockito.exceptions.verification
Verification errors.
org.mockito.exceptions.verification.junit - package org.mockito.exceptions.verification.junit
JUnit integration to provide better support for JUnit 4 and earlier in IDEs.
org.mockito.exceptions.verification.opentest4j - package org.mockito.exceptions.verification.opentest4j
Integration to provide better support for IDEs that support OpenTest4J.
org.mockito.hamcrest - package org.mockito.hamcrest
Mockito Hamcrest matcher integration.
org.mockito.internal - package org.mockito.internal
Internal classes, not to be used by clients.
org.mockito.internal.configuration - package org.mockito.internal.configuration
Mockito configuration.
org.mockito.internal.configuration.injection - package org.mockito.internal.configuration.injection
Mockito injection internals.
org.mockito.internal.configuration.injection.filter - package org.mockito.internal.configuration.injection.filter
 
org.mockito.internal.configuration.injection.scanner - package org.mockito.internal.configuration.injection.scanner
 
org.mockito.internal.configuration.plugins - package org.mockito.internal.configuration.plugins
Mockito plugins configuration machinery.
org.mockito.internal.creation - package org.mockito.internal.creation
Mock object creation.
org.mockito.internal.creation.bytebuddy - package org.mockito.internal.creation.bytebuddy
ByteBuddy related stuff.
org.mockito.internal.creation.bytebuddy.inject - package org.mockito.internal.creation.bytebuddy.inject
Internal classes, not to be used by clients.
org.mockito.internal.creation.instance - package org.mockito.internal.creation.instance
 
org.mockito.internal.creation.proxy - package org.mockito.internal.creation.proxy
Mock makers based on the Proxy utility.
org.mockito.internal.creation.settings - package org.mockito.internal.creation.settings
 
org.mockito.internal.creation.util - package org.mockito.internal.creation.util
Stuff that does not have a good package yet.
org.mockito.internal.debugging - package org.mockito.internal.debugging
Whatever helps in debugging failed tests.
org.mockito.internal.exceptions - package org.mockito.internal.exceptions
 
org.mockito.internal.exceptions.stacktrace - package org.mockito.internal.exceptions.stacktrace
Stack trace filtering / cleaning internal APIs.
org.mockito.internal.exceptions.util - package org.mockito.internal.exceptions.util
 
org.mockito.internal.framework - package org.mockito.internal.framework
 
org.mockito.internal.hamcrest - package org.mockito.internal.hamcrest
 
org.mockito.internal.handler - package org.mockito.internal.handler
 
org.mockito.internal.invocation - package org.mockito.internal.invocation
Invocation machinery and related classes.
org.mockito.internal.invocation.finder - package org.mockito.internal.invocation.finder
 
org.mockito.internal.invocation.mockref - package org.mockito.internal.invocation.mockref
 
org.mockito.internal.junit - package org.mockito.internal.junit
JUnit integration support classes.
org.mockito.internal.listeners - package org.mockito.internal.listeners
 
org.mockito.internal.matchers - package org.mockito.internal.matchers
Argument matchers for verification and stubbing.
org.mockito.internal.matchers.apachecommons - package org.mockito.internal.matchers.apachecommons
Argument matchers that use Apache Commons Lang reflection-equality.
org.mockito.internal.matchers.text - package org.mockito.internal.matchers.text
 
org.mockito.internal.progress - package org.mockito.internal.progress
Mocking progress stateful classes.
org.mockito.internal.reporting - package org.mockito.internal.reporting
Deals with nicely printing verification errors.
org.mockito.internal.runners - package org.mockito.internal.runners
Internal classes for runners implementations.
org.mockito.internal.runners.util - package org.mockito.internal.runners.util
Internal utils for runner implementations.
org.mockito.internal.session - package org.mockito.internal.session
 
org.mockito.internal.stubbing - package org.mockito.internal.stubbing
Stubbing logic.
org.mockito.internal.stubbing.answers - package org.mockito.internal.stubbing.answers
Answers for stubbed calls.
org.mockito.internal.stubbing.defaultanswers - package org.mockito.internal.stubbing.defaultanswers
Implementations of default Answers.
org.mockito.internal.util - package org.mockito.internal.util
Static utils
org.mockito.internal.util.collections - package org.mockito.internal.util.collections
 
org.mockito.internal.util.concurrent - package org.mockito.internal.util.concurrent
 
org.mockito.internal.util.io - package org.mockito.internal.util.io
 
org.mockito.internal.util.reflection - package org.mockito.internal.util.reflection
Reflection utilities.
org.mockito.internal.verification - package org.mockito.internal.verification
Verification logic.
org.mockito.internal.verification.api - package org.mockito.internal.verification.api
This package should be open to public once verification API is fully finished.
org.mockito.internal.verification.argumentmatching - package org.mockito.internal.verification.argumentmatching
Deals with matching arguments.
org.mockito.internal.verification.checkers - package org.mockito.internal.verification.checkers
Verification checkers.
org.mockito.invocation - package org.mockito.invocation
Public API related to mock method invocations.
org.mockito.junit - package org.mockito.junit
Mockito JUnit integration ; rule and runners.
org.mockito.listeners - package org.mockito.listeners
Public classes relative to the listener APIs.
org.mockito.mock - package org.mockito.mock
Mock settings related classes.
org.mockito.plugins - package org.mockito.plugins
Mockito plugins allow customization of behavior.
org.mockito.quality - package org.mockito.quality
Mocking quality related classes.
org.mockito.session - package org.mockito.session
 
org.mockito.stubbing - package org.mockito.stubbing
Stubbing related classes.
org.mockito.verification - package org.mockito.verification
Verification related classes.
OS_NAME - Static variable in class org.mockito.internal.util.Platform
 
OS_VERSION - Static variable in class org.mockito.internal.util.Platform
 
outerInstance(Object) - Method in class org.mockito.internal.creation.MockSettingsImpl
 
outerInstance(Object) - Method in interface org.mockito.MockSettings
Makes it possible to mock non-static inner classes in conjunction with MockSettings.useConstructor(Object...).
A B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form