diff options
author | Garfield Tan <xutan@google.com> | 2019-04-10 13:09:46 -0700 |
---|---|---|
committer | Garfield Tan <xutan@google.com> | 2019-07-09 15:07:52 -0700 |
commit | feedf5422d04e9d37a8f7c8e76d17f2cf7378924 (patch) | |
tree | f8a60abd0c6ecb37b0baf4c2ec30f1d402769661 /src/main/java/org/mockito/mock | |
parent | d79e6bef84d89fcbfb44194374ecb9f1cef8bced (diff) | |
download | mockito-feedf5422d04e9d37a8f7c8e76d17f2cf7378924.tar.gz |
Update to Mockito v2.25.7.
Bug: 123984854
Test: atest CtsMockingTestCases
CtsInlineMockingTestCases
CtsMockingDebuggableTestCases
CtsExtendedMockingTestCases
Change-Id: I65118f22e9b53b078276263189dcd1cdd71a53b5
Diffstat (limited to 'src/main/java/org/mockito/mock')
-rw-r--r-- | src/main/java/org/mockito/mock/MockCreationSettings.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/org/mockito/mock/MockCreationSettings.java b/src/main/java/org/mockito/mock/MockCreationSettings.java index 7e74be8..2343b0d 100644 --- a/src/main/java/org/mockito/mock/MockCreationSettings.java +++ b/src/main/java/org/mockito/mock/MockCreationSettings.java @@ -9,6 +9,7 @@ import org.mockito.Incubating; import org.mockito.MockSettings; import org.mockito.NotExtensible; import org.mockito.listeners.InvocationListener; +import org.mockito.listeners.StubbingLookupListener; import org.mockito.listeners.VerificationStartedListener; import org.mockito.quality.Strictness; import org.mockito.stubbing.Answer; @@ -70,7 +71,17 @@ public interface MockCreationSettings<T> { boolean isStripAnnotations(); /** - * {@link InvocationListener} instances attached to this mock, see {@link org.mockito.MockSettings#invocationListeners}. + * Returns {@link StubbingLookupListener} instances attached to this mock via {@link MockSettings#stubbingLookupListeners(StubbingLookupListener...)}. + * The resulting list is mutable, you can add/remove listeners even after the mock was created. + * <p> + * For more details see {@link StubbingLookupListener}. + * + * @since 2.24.6 + */ + List<StubbingLookupListener> getStubbingLookupListeners(); + + /** + * {@link InvocationListener} instances attached to this mock, see {@link org.mockito.MockSettings#invocationListeners(InvocationListener...)}. */ List<InvocationListener> getInvocationListeners(); |