Searched refs:getMockName (Results 1 – 14 of 14) sorted by relevance
7 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()
84 public static MockName getMockName(Object mock) { in getMockName() method in MockUtil85 return getMockHandler(mock).getMockSettings().getMockName(); in getMockName()89 MockName mockName = getMockName(mock); in maybeRedefineMockName()
69 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()
27 assertEquals("dummy", settings.getMockName().toString()); in public_api_for_creating_settings()
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()
60 …"mockInstance=" + (MockUtil.isMock(mockInstance) ? MockUtil.getMockName(mockInstance) : typeInstan… in toString()
38 MockName getMockName(); in getMockName() method
48 …String qualifiedName = MockUtil.getMockName(invocation.getMock()) + "." + invocation.getMethod().g… in print()
60 MockName name = MockUtil.getMockName(mock); in answer()
97 public MockName getMockName() { in getMockName() method in CreationSettings
159 return MockUtil.getMockName(mock).toString(); in mockName()
117 MockName mockName = MockUtil.getMockName(mockitoMock); in writeReplace()
72 public MockName getMockName() { in getMockName() method in MockSettingsImpl
853 return MockUtil.getMockName(mock); in safelyGetMockName()