/external/mockito/src/test/java/org/mockito/internal/framework/ |
D | DefaultMockitoFrameworkTest.java | 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/internal/util/ |
D | DefaultMockingDetailsTest.java | 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 …ckingDetails(mock(Gork.class, withSettings().defaultAnswer(Mockito.CALLS_REAL_METHODS))).isMock()); in should_know_spy() 60 assertTrue(mockingDetails(foo).isMock()); in should_know_mock() 61 assertTrue(mockingDetails(mock(Foo.class)).isMock()); in should_know_mock() 69 assertFalse(mockingDetails("non mock").isMock()); in should_handle_non_mocks() 72 assertFalse(mockingDetails(null).isMock()); in should_handle_non_mocks() 77 assertEquals(true, mockingDetails(gork).isMock()); in should_check_that_a_spy_is_also_a_mock()
|
D | MockUtilTest.java | 49 assertFalse(MockUtil.isMock("i mock a mock")); in should_validate_mock() 50 assertTrue(MockUtil.isMock(Mockito.mock(List.class))); in should_validate_mock()
|
/external/mockito/src/test/java/org/mockitousage/annotation/ |
D | SpyAnnotationInitializedInBaseClassTest.java | 18 import static org.mockito.internal.util.MockUtil.isMock; 40 assertTrue(MockUtil.isMock(subClass.list)); in shouldInitSpiesInBaseClass() 64 assertTrue(isMock(spyInSubclass)); in shouldInitSpiesInHierarchy() 65 assertTrue(isMock(spyInBaseclass)); in shouldInitSpiesInHierarchy()
|
D | MockInjectionUsingSetterOrPropertyTest.java | 70 assertTrue(MockUtil.isMock(initializedSpy)); in should_inject_mocks_in_spy() 77 assertTrue(MockUtil.isMock(notInitializedSpy)); in should_initialize_spy_if_null_and_inject_mocks()
|
D | MockInjectionUsingConstructorTest.java | 86 assertFalse(MockUtil.isMock(articleManager)); in objects_created_with_constructor_initialization_can_be_spied() 87 assertTrue(MockUtil.isMock(spiedArticleManager)); in objects_created_with_constructor_initialization_can_be_spied()
|
D | SpyInjectionTest.java | 30 MockUtil.isMock(hasSpy.spy); in shouldDoStuff()
|
D | MockInjectionUsingConstructorIssue421Test.java | 42 assertThat(MockUtil.isMock(calculator)).isTrue(); in checkIfMockIsInjected()
|
/external/mockito/src/main/java/org/mockito/internal/util/ |
D | DefaultMockingDetails.java | 31 public boolean isMock(){ in isMock() method in DefaultMockingDetails 32 return MockUtil.isMock(toInspect); in isMock() 84 } else if (!isMock()) { in assertGoodMock()
|
D | MockUtil.java | 58 if (isMock(mock)) { in getMockHandler() 70 … return isMock(mock) && getMockSettings(mock).getDefaultAnswer() == Mockito.CALLS_REAL_METHODS; in isSpy() 73 public static boolean isMock(Object mock) { in isMock() method in MockUtil
|
/external/mockito/src/test/java/org/mockito/internal/stubbing/defaultanswers/ |
D | ReturnsMocksTest.java | 30 assertTrue(MockUtil.isMock(interfaceMock)); in should_return_mock_value_for_interface() 36 assertTrue(MockUtil.isMock(classMock)); in should_return_mock_value_for_class()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/ |
D | ForwardingTestUtil.java | 80 assertTrue(mockingDetails(mockDelegate).isMock()); in testMethodsForwarded() 81 assertFalse(mockingDetails(forwarder).isMock()); in testMethodsForwarded()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/ |
D | StubberImpl.java | 23 import static org.mockito.internal.util.MockUtil.isMock; 42 if (!isMock(mock)) { in when()
|
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/ |
D | MockMethodAdvice.java | 117 public boolean isMock(Object instance) { in isMock() method in MockMethodAdvice 125 return selfCallInfo.checkSuperCall(instance) && isMock(instance); in isMocked() 283 return dispatcher != null && dispatcher.isMock(self); in enter() 304 return dispatcher != null && dispatcher.isMock(self); in enter()
|
D | MockMethodDispatcher.java | 30 public abstract boolean isMock(Object instance); in isMock() method in MockMethodDispatcher
|
/external/mockito/src/main/java/org/mockito/internal/ |
D | MockitoCore.java | 51 import static org.mockito.internal.util.MockUtil.isMock; 91 if (!mockingDetails.isMock()) { in verify() 166 if (!isMock(mock)) { in inOrder()
|
/external/mockito/src/main/java/org/mockito/ |
D | MockingDetails.java | 30 boolean isMock(); in isMock() method
|
/external/mockito/src/main/java/org/mockito/internal/util/collections/ |
D | HashCodeAndEqualsMockWrapper.java | 60 …"mockInstance=" + (MockUtil.isMock(mockInstance) ? MockUtil.getMockName(mockInstance) : typeInstan… in toString()
|
/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/ |
D | MockMethodAdvice.java | 212 public boolean isMock(Object instance) { in isMock() method in MockMethodAdvice 228 return selfCallInfo.shouldMockMethod(instance) && isMock(instance); in isMocked()
|
/external/mockito/src/test/java/org/mockito/internal/junit/ |
D | JUnitRuleTest.java | 26 assertTrue(mockingDetails(mock).isMock()); in injects_into_test_case()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/ |
D | ThrowsException.java | 40 if (MockUtil.isMock(throwable)) { in answer()
|
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/ |
D | SpyOnInjectedFieldsHandler.java | 38 if (MockUtil.isMock(instance)) { in processInjection()
|
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/scanner/ |
D | MockScanner.java | 83 return MockUtil.isMock(instance) in isMockOrSpy()
|
/external/mockito/src/main/java/org/mockito/internal/listeners/ |
D | VerificationStartedNotifier.java | 45 if (!mockingDetails.isMock()) { in setMock()
|
/external/dexmaker/dexmaker-mockito-inline-dispatcher/src/main/java/com/android/dx/mockito/inline/ |
D | MockMethodDispatcher.java | 88 public boolean isMock(Object instance) { in isMock() method in MockMethodDispatcher
|