Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
L
- 1. Let's verify some behaviour! - Search tag in class org.mockito.Mockito
- Section
- LAST_ARGUMENT - Static variable in class org.mockito.internal.stubbing.answers.ReturnsArgumentAt
- lenient() - Method in class org.mockito.internal.creation.MockSettingsImpl
- lenient() - Method in class org.mockito.internal.MockitoCore
- lenient() - Element in annotation type org.mockito.Mock
-
Deprecated.
- lenient() - Static method in class org.mockito.Mockito
-
Lenient stubs bypass "strict stubbing" validation (see
Strictness.STRICT_STUBS
). - lenient() - Method in interface org.mockito.MockSettings
-
Deprecated.Use
MockSettings.strictness(Strictness)
instead. Lenient mocks bypass "strict stubbing" validation (seeStrictness.STRICT_STUBS
). When mock is declared as lenient none of its stubbings will be checked for potential stubbing problems such as 'unnecessary stubbing' (UnnecessaryStubbingException
) or for 'stubbing argument mismatch'PotentialStubbingProblem
.
For more information and an elaborate example, seeFoo mock = mock(Foo.class, withSettings.lenient());
Mockito.lenient()
. - LENIENT - Enum constant in enum org.mockito.Mock.Strictness
- LENIENT - Enum constant in enum org.mockito.quality.Strictness
-
No extra strictness.
- LenientCopyTool - Class in org.mockito.internal.util.reflection
- LenientCopyTool() - Constructor for class org.mockito.internal.util.reflection.LenientCopyTool
- LenientStubber - Interface in org.mockito.stubbing
-
Used for declaring optional stubbings with
Mockito.lenient()
- leq(byte) - Static method in class org.mockito.AdditionalMatchers
-
byte argument less than or equal to the given value.
- leq(double) - Static method in class org.mockito.AdditionalMatchers
-
double argument less than or equal to the given value.
- leq(float) - Static method in class org.mockito.AdditionalMatchers
-
float argument less than or equal to the given value.
- leq(int) - Static method in class org.mockito.AdditionalMatchers
-
int argument less than or equal to the given value.
- leq(long) - Static method in class org.mockito.AdditionalMatchers
-
long argument less than or equal to the given value.
- leq(short) - Static method in class org.mockito.AdditionalMatchers
-
short argument less than or equal to the given value.
- leq(T) - Static method in class org.mockito.AdditionalMatchers
-
comparable argument less than or equal the given value details.
- LessOrEqual<T> - Class in org.mockito.internal.matchers
- LessOrEqual(T) - Constructor for class org.mockito.internal.matchers.LessOrEqual
- LessThan<T> - Class in org.mockito.internal.matchers
- LessThan(T) - Constructor for class org.mockito.internal.matchers.LessThan
- loadConfiguration() - Method in class org.mockito.internal.configuration.ClassPathLoader
- Localized<T> - Class in org.mockito.internal.debugging
- Localized(T) - Constructor for class org.mockito.internal.debugging.Localized
- LocalizedMatcher - Class in org.mockito.internal.matchers
- LocalizedMatcher(ArgumentMatcher<?>) - Constructor for class org.mockito.internal.matchers.LocalizedMatcher
- Location - Interface in org.mockito.invocation
-
Describes the location of something in the source code.
- LocationFactory - Class in org.mockito.internal.debugging
- log(Object) - Method in class org.mockito.internal.util.ConsoleMockitoLogger
- log(Object) - Method in interface org.mockito.plugins.MockitoLogger
-
Log specified object.
- log(String) - Method in class org.mockito.internal.session.MockitoSessionLoggerAdapter
- log(String) - Method in interface org.mockito.session.MockitoSessionLogger
-
Logs the hint.
- logger(MockitoSessionLogger) - Method in class org.mockito.internal.session.DefaultMockitoSessionBuilder
- logger(MockitoSessionLogger) - Method in interface org.mockito.session.MockitoSessionBuilder
-
Configures logger used by
MockitoSession
for emitting warnings when finishing the session. - LoggingListener - Class in org.mockito.internal.debugging
- LoggingListener(boolean) - Constructor for class org.mockito.internal.debugging.LoggingListener
- longThat(Matcher<Long>) - Static method in class org.mockito.hamcrest.MockitoHamcrest
-
Enables integrating hamcrest matchers that match primitive
long
arguments. - longThat(ArgumentMatcher<Long>) - Static method in class org.mockito.ArgumentMatchers
-
Allows creating custom
long
argument matchers. - lt(byte) - Static method in class org.mockito.AdditionalMatchers
-
byte argument less than the given value.
- lt(double) - Static method in class org.mockito.AdditionalMatchers
-
double argument less than the given value.
- lt(float) - Static method in class org.mockito.AdditionalMatchers
-
float argument less than the given value.
- lt(int) - Static method in class org.mockito.AdditionalMatchers
-
int argument less than the given value.
- lt(long) - Static method in class org.mockito.AdditionalMatchers
-
long argument less than the given value.
- lt(short) - Static method in class org.mockito.AdditionalMatchers
-
short argument less than the given value.
- lt(T) - Static method in class org.mockito.AdditionalMatchers
-
comparable argument less than the given value.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
Mock.strictness()
instead. Mock will be lenient, seeMockSettings.lenient()
. For examples how to use 'Mock' annotation and parameters seeMock
.