Home
last modified time | relevance | path

Searched refs:mockingDetails (Results 1 – 15 of 15) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/util/
DDefaultMockingDetailsTest.java26 import static org.mockito.Mockito.mockingDetails;
46 assertEquals(mockingDetails(foo).getMock(), foo); in should_provide_original_mock()
47 assertEquals(mockingDetails(null).getMock(), null); in should_provide_original_mock()
52 assertTrue(mockingDetails(gork).isMock()); in should_know_spy()
53 assertTrue(mockingDetails(spy( new Gork())).isMock()); in should_know_spy()
54 assertTrue(mockingDetails(spy(Gork.class)).isMock()); in should_know_spy()
55 …assertTrue(mockingDetails(mock(Gork.class, withSettings().defaultAnswer(Mockito.CALLS_REAL_METHODS… in should_know_spy()
60 assertTrue(mockingDetails(foo).isMock()); in should_know_mock()
61 assertTrue(mockingDetails(mock(Foo.class)).isMock()); in should_know_mock()
62 assertFalse(mockingDetails(foo).isSpy()); in should_know_mock()
[all …]
/external/mockito/src/test/java/org/mockito/internal/listeners/
DVerificationStartedNotifierTest.java19 import static org.mockito.Mockito.mockingDetails;
24 MockingDetails mockingDetails = mockingDetails(mock(List.class)); field in VerificationStartedNotifierTest
29 VerificationStartedNotifier.notifyVerificationStarted((List) emptyList(), mockingDetails); in does_not_do_anything_when_list_is_empty() local
34 … VerificationStartedNotifier.Event event = new VerificationStartedNotifier.Event(mockingDetails); in decent_exception_when_setting_non_mock()
50 … VerificationStartedNotifier.Event event = new VerificationStartedNotifier.Event(mockingDetails); in shows_clean_exception_message_when_illegal_null_arg_is_used()
65 … VerificationStartedNotifier.Event event = new VerificationStartedNotifier.Event(mockingDetails); in decent_exception_when_setting_mock_of_wrong_type()
84 …ificationStartedNotifier.Event event = new VerificationStartedNotifier.Event(mockingDetails(mock)); in decent_exception_when_setting_mock_that_does_not_implement_all_desired_interfaces()
104 …ificationStartedNotifier.Event event = new VerificationStartedNotifier.Event(mockingDetails(mock)); in accepts_replacement_mock_if_all_types_are_compatible()
/external/mockito/src/test/java/org/mockito/internal/framework/
DDefaultMockitoFrameworkTest.java29 import static org.mockito.Mockito.mockingDetails;
131 assertTrue(mockingDetails(mock).isMock()); in clearing_all_mocks_is_safe_regardless_of_mock_maker_type()
142 assertTrue(mockingDetails(list1).isMock()); in clears_all_mocks()
144 assertTrue(mockingDetails(list2).isMock()); in clears_all_mocks()
150 assertFalse(mockingDetails(list1).isMock()); in clears_all_mocks()
151 assertFalse(mockingDetails(list2).isMock()); in clears_all_mocks()
161 assertTrue(mockingDetails(list1).isMock()); in clears_mock()
163 assertTrue(mockingDetails(list2).isMock()); in clears_mock()
169 assertFalse(mockingDetails(list1).isMock()); in clears_mock()
170 assertTrue(mockingDetails(list2).isMock()); in clears_mock()
/external/mockito/src/test/java/org/mockito/
DInvocationFactoryTest.java42 Mockito.mockingDetails(mock).getMockHandler().handle(invocation); in call_method_that_throws_a_throwable()
63 Object ret = Mockito.mockingDetails(mock).getMockHandler().handle(invocation); in call_method_that_returns_a_string()
78 Object ret = Mockito.mockingDetails(mock).getMockHandler().handle(invocation); in deprecated_api_still_works()
DStaticMockingExperimentTest.java44 MockHandler handler = Mockito.mockingDetails(mock).getMockHandler();
/external/mockito/src/main/java/org/mockito/internal/listeners/
DVerificationStartedNotifier.java44 MockingDetails mockingDetails = Mockito.mockingDetails(mock); in setMock() local
45 if (!mockingDetails.isMock()) { in setMock()
/external/mockito/src/main/java/org/mockito/internal/
DMockitoCore.java90 MockingDetails mockingDetails = mockingDetails(mock); in verify() local
91 if (!mockingDetails.isMock()) { in verify()
94 MockHandler handler = mockingDetails.getMockHandler(); in verify()
99 handler.getMockSettings().getVerificationStartedListeners(), mockingDetails); in verify()
212 public MockingDetails mockingDetails(Object toInspect) { in mockingDetails() method in MockitoCore
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DForwardingTestUtil.java22 import static org.mockito.Mockito.mockingDetails;
80 assertTrue(mockingDetails(mockDelegate).isMock()); in testMethodsForwarded()
81 assertFalse(mockingDetails(forwarder).isMock()); in testMethodsForwarded()
/external/mockito/src/test/java/org/mockitousage/strictness/
DStrictnessPerMockTest.java28 import static org.mockito.Mockito.mockingDetails;
48 assertTrue(mockingDetails(lenientMock).getMockCreationSettings().isLenient()); in knows_if_mock_is_lenient()
49 assertFalse(mockingDetails(strictStubsMock).getMockCreationSettings().isLenient()); in knows_if_mock_is_lenient()
/external/mockito/src/test/java/org/mockito/internal/junit/
DJUnitRuleTest.java17 import static org.mockito.Mockito.mockingDetails;
26 assertTrue(mockingDetails(mock).isMock()); in injects_into_test_case()
/external/mockito/src/main/java/org/mockito/internal/debugging/
DInvocationsPrinter.java21 Collection<Invocation> invocations = Mockito.mockingDetails(mock).getInvocations(); in printInvocations()
22 Collection<Stubbing> stubbings = Mockito.mockingDetails(mock).getStubbings(); in printInvocations()
/external/mockito/src/test/java/org/mockitousage/session/
DMockitoSessionTest.java24 import static org.mockito.Mockito.mockingDetails;
187 … assertEquals("mock", mockingDetails(mock).getMockCreationSettings().getMockName().toString()); in manual_mock_preserves_its_settings()
188 …assertEquals("manual mock", mockingDetails(mock2).getMockCreationSettings().getMockName().toString… in manual_mock_preserves_its_settings()
/external/dexmaker/dexmaker-mockito-inline-extended-tests/src/main/java/com/android/dx/mockito/inline/extended/tests/
DMockStatic.java24 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mockingDetails;
419 MockingDetails superClassDetails = mockingDetails(staticMockMarker(SuperClass.class)); in verifyMockingDetails()
425 MockingDetails subClassDetails = mockingDetails(staticMockMarker(SubClass.class)); in verifyMockingDetails()
/external/mockito/src/main/java/org/mockito/
DMockito.java1852 public static MockingDetails mockingDetails(Object toInspect) { in mockingDetails() method in Mockito
1853 return MOCKITO_CORE.mockingDetails(toInspect); in mockingDetails()
/external/mockito/src/test/java/org/mockitousage/annotation/
DAnnotationsTest.java92 assertTrue(Mockito.mockingDetails(stubOnly).getMockCreationSettings().isStubOnly()); in shouldInitMocksWithGivenSettings()