Uses of Enum
org.mockito.quality.Strictness
Packages that use Strictness
Package
Description
Mockito is a mock library for java - see
Mockito class for usage.Internal classes, not to be used by clients.
Mock object creation.
JUnit integration support classes.
Stubbing logic.
Mockito JUnit integration ; rule and runners.
Mock settings related classes.
Mocking quality related classes.
Stubbing related classes.
-
Uses of Strictness in org.mockito
Methods in org.mockito with parameters of type StrictnessModifier and TypeMethodDescriptionvoidMockitoSession.setStrictness(Strictness strictness) Changes the strictness of thisMockitoSession.MockSettings.strictness(Strictness strictness) Specifies strictness level for the mock. -
Uses of Strictness in org.mockito.internal
Methods in org.mockito.internal with parameters of type Strictness -
Uses of Strictness in org.mockito.internal.creation
Methods in org.mockito.internal.creation with parameters of type Strictness -
Uses of Strictness in org.mockito.internal.creation.settings
Fields in org.mockito.internal.creation.settings declared as StrictnessMethods in org.mockito.internal.creation.settings that return Strictness -
Uses of Strictness in org.mockito.internal.framework
Methods in org.mockito.internal.framework with parameters of type StrictnessModifier and TypeMethodDescriptionvoidDefaultMockitoSession.setStrictness(Strictness strictness) Constructors in org.mockito.internal.framework with parameters of type StrictnessModifierConstructorDescriptionDefaultMockitoSession(List<Object> testClassInstances, String name, Strictness strictness, MockitoLogger logger) -
Uses of Strictness in org.mockito.internal.junit
Fields in org.mockito.internal.junit declared as StrictnessModifier and TypeFieldDescriptionprivate StrictnessDefaultStubbingLookupListener.currentStrictnessprivate StrictnessUniversalTestListener.currentStrictnessprotected StrictnessJUnitSessionStore.strictnessMethods in org.mockito.internal.junit with parameters of type StrictnessModifier and TypeMethodDescription(package private) voidDefaultStubbingLookupListener.setCurrentStrictness(Strictness currentStrictness) Enables resetting the strictness to desired level(package private) voidJUnitSessionStore.setStrictness(Strictness strictness) voidUniversalTestListener.setStrictness(Strictness strictness) JUnitRule.strictness(Strictness strictness) JUnitTestRule.strictness(Strictness strictness) Constructors in org.mockito.internal.junit with parameters of type StrictnessModifierConstructorDescription(package private)DefaultStubbingLookupListener(Strictness strictness) JUnitRule(MockitoLogger logger, Strictness strictness) (package private)JUnitSessionStore(MockitoLogger logger, Strictness strictness) JUnitTestRule(MockitoLogger logger, Strictness strictness, Object testInstance) UniversalTestListener(Strictness initialStrictness, MockitoLogger logger) -
Uses of Strictness in org.mockito.internal.session
Fields in org.mockito.internal.session declared as StrictnessMethods in org.mockito.internal.session with parameters of type Strictness -
Uses of Strictness in org.mockito.internal.stubbing
Fields in org.mockito.internal.stubbing declared as StrictnessModifier and TypeFieldDescriptionprivate final StrictnessInvocationContainerImpl.mockStrictnessprivate StrictnessOngoingStubbingImpl.strictnessprivate final StrictnessStubbedInvocationMatcher.strictnessprivate final StrictnessStubberImpl.strictnessprivate StrictnessDoAnswerStyleStubbing.stubbingStrictnessMethods in org.mockito.internal.stubbing that return StrictnessModifier and TypeMethodDescriptionstatic StrictnessStrictnessSelector.determineStrictness(Stubbing stubbing, MockCreationSettings mockSettings, Strictness testLevelStrictness) Determines the actual strictness in the following importance order: 1st - strictness configured when declaring stubbing; 2nd - strictness configured at mock level; 3rd - strictness configured at test level (rule, mockito session)StubbedInvocationMatcher.getStrictness()(package private) StrictnessDoAnswerStyleStubbing.getStubbingStrictness()Methods in org.mockito.internal.stubbing with parameters of type StrictnessModifier and TypeMethodDescriptionInvocationContainerImpl.addAnswer(Answer<?> answer, boolean isConsecutive, Strictness stubbingStrictness) Adds new stubbed answer and returns the invocation matcher the answer was added to.voidInvocationContainerImpl.addAnswer(Answer<?> answer, Strictness stubbingStrictness) static StrictnessStrictnessSelector.determineStrictness(Stubbing stubbing, MockCreationSettings mockSettings, Strictness testLevelStrictness) Determines the actual strictness in the following importance order: 1st - strictness configured when declaring stubbing; 2nd - strictness configured at mock level; 3rd - strictness configured at test level (rule, mockito session)(package private) voidDoAnswerStyleStubbing.setAnswers(List<Answer<?>> answers, Strictness stubbingStrictness) voidInvocationContainerImpl.setAnswersForStubbing(List<Answer<?>> answers, Strictness strictness) Sets the answers declared with 'doAnswer' style.voidOngoingStubbingImpl.setStrictness(Strictness strictness) Constructors in org.mockito.internal.stubbing with parameters of type StrictnessModifierConstructorDescriptionStubbedInvocationMatcher(Answer answer, MatchableInvocation invocation, Strictness strictness) StubberImpl(Strictness strictness) -
Uses of Strictness in org.mockito.junit
Methods in org.mockito.junit with parameters of type StrictnessModifier and TypeMethodDescriptionMockitoRule.strictness(Strictness strictness) The strictness, especially "strict stubs" (Strictness.STRICT_STUBS) helps debugging and keeping tests clean.MockitoTestRule.strictness(Strictness strictness) Equivalent toMockitoRule.strictness(Strictness). -
Uses of Strictness in org.mockito.junit.jupiter
Fields in org.mockito.junit.jupiter declared as StrictnessConstructors in org.mockito.junit.jupiter with parameters of type Strictness -
Uses of Strictness in org.mockito.mock
Methods in org.mockito.mock that return StrictnessModifier and TypeMethodDescriptionMockCreationSettings.getStrictness()Sets strictness level for the mock, e.g. -
Uses of Strictness in org.mockito.quality
Subclasses with type arguments of type Strictness in org.mockito.qualityModifier and TypeClassDescriptionenumConfigures the "strictness" of Mockito, affecting the behavior of stubbings and verification.Methods in org.mockito.quality that return StrictnessModifier and TypeMethodDescriptionstatic StrictnessReturns the enum constant of this type with the specified name.static Strictness[]Strictness.values()Returns an array containing the constants of this enum type, in the order they are declared. -
Uses of Strictness in org.mockito.session
Methods in org.mockito.session with parameters of type StrictnessModifier and TypeMethodDescriptionMockitoSessionBuilder.strictness(Strictness strictness) Configures strictness ofMockitoSessioninstance. -
Uses of Strictness in org.mockito.stubbing
Methods in org.mockito.stubbing that return StrictnessModifier and TypeMethodDescriptionStubbing.getStrictness()Informs about theStrictnesslevel of this stubbing.