Home
last modified time | relevance | path

Searched refs:getMockName (Results 1 – 14 of 14) sorted by relevance

/external/mockito/src/main/java/org/mockito/internal/configuration/injection/filter/
DNameBasedCandidateFilter.java7 import static org.mockito.internal.util.MockUtil.getMockName;
43 if (candidateFieldToBeInjected.getName().equals(getMockName(mock).toString())) { in selectMatchingName()
62 String mockName = getMockName(mocks.iterator().next()).toString(); in anotherCandidateMatchesMockName()
/external/mockito/src/main/java/org/mockito/internal/util/
DMockUtil.java84 public static MockName getMockName(Object mock) { in getMockName() method in MockUtil
85 return getMockHandler(mock).getMockSettings().getMockName(); in getMockName()
89 MockName mockName = getMockName(mock); in maybeRedefineMockName()
/external/mockito/src/test/java/org/mockito/internal/util/
DMockUtilTest.java69 Assertions.assertThat(MockUtil.getMockName(mock).toString()).isEqualTo("newName"); in should_redefine_MockName_if_default()
77 Assertions.assertThat(MockUtil.getMockName(mock).toString()).isEqualTo("original"); in should_not_redefine_MockName_if_default()
DMockSettingsTest.java27 assertEquals("dummy", settings.getMockName().toString()); in public_api_for_creating_settings()
/external/mockito/src/test/java/org/mockitousage/session/
DMockitoSessionTest.java187 … 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/mockito/src/main/java/org/mockito/internal/util/collections/
DHashCodeAndEqualsMockWrapper.java60 …"mockInstance=" + (MockUtil.isMock(mockInstance) ? MockUtil.getMockName(mockInstance) : typeInstan… in toString()
/external/mockito/src/main/java/org/mockito/mock/
DMockCreationSettings.java38 MockName getMockName(); in getMockName() method
/external/mockito/src/main/java/org/mockito/internal/reporting/
DPrintSettings.java48 …String qualifiedName = MockUtil.getMockName(invocation.getMock()) + "." + invocation.getMethod().g… in print()
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsEmptyValues.java60 MockName name = MockUtil.getMockName(mock); in answer()
/external/mockito/src/main/java/org/mockito/internal/creation/settings/
DCreationSettings.java97 public MockName getMockName() { in getMockName() method in CreationSettings
/external/mockito/src/test/java/org/mockitousage/debugging/
DVerboseLoggingOfInvocationsOnMockTest.java159 return MockUtil.getMockName(mock).toString(); in mockName()
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DByteBuddyCrossClassLoaderSerializationSupport.java117 MockName mockName = MockUtil.getMockName(mockitoMock); in writeReplace()
/external/mockito/src/main/java/org/mockito/internal/creation/
DMockSettingsImpl.java72 public MockName getMockName() { in getMockName() method in MockSettingsImpl
/external/mockito/src/main/java/org/mockito/internal/exceptions/
DReporter.java853 return MockUtil.getMockName(mock); in safelyGetMockName()