Home
last modified time | relevance | path

Searched refs:mockInstance (Results 1 – 3 of 3) sorted by relevance

/external/mockito/src/main/java/org/mockito/internal/util/collections/
DHashCodeAndEqualsMockWrapper.java29 private final Object mockInstance; field in HashCodeAndEqualsMockWrapper
31 public HashCodeAndEqualsMockWrapper(Object mockInstance) { in HashCodeAndEqualsMockWrapper() argument
32 this.mockInstance = mockInstance; in HashCodeAndEqualsMockWrapper()
36 return mockInstance; in get()
46 return mockInstance == that.mockInstance; in equals()
51 return System.identityHashCode(mockInstance); in hashCode()
60 …"mockInstance=" + (MockUtil.isMock(mockInstance) ? MockUtil.getMockName(mockInstance) : typeInstan… in toString()
65 …return mockInstance.getClass().getSimpleName() + "(" + System.identityHashCode(mockInstance) + ")"; in typeInstanceString()
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DSubclassByteBuddyMockMaker.java45 T mockInstance = null; in createMock() local
47 mockInstance = instantiator.newInstance(mockedProxyType); in createMock()
48 MockAccess mockAccess = (MockAccess) mockInstance; in createMock()
51 return ensureMockIsAssignableToMockedType(settings, mockInstance); in createMock()
57 " proxy instance class : " + describeClass(mockInstance), in createMock()
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/scanner/
DMockScanner.java59 Object mockInstance = preparedMock(fieldReader.read(), field); in scan() local
60 if (mockInstance != null) { in scan()
61 mocks.add(mockInstance); in scan()