Home
last modified time | relevance | path

Searched refs:mockName (Results 1 – 8 of 8) sorted by relevance

/external/mockito/src/main/java/org/mockito/internal/util/
DMockNameImpl.java14 private final String mockName; field in MockNameImpl
18 public MockNameImpl(String mockName, Class<?> classToMock) { in MockNameImpl() argument
19 if (mockName == null) { in MockNameImpl()
20 this.mockName = toInstanceName(classToMock); in MockNameImpl()
23 this.mockName = mockName; in MockNameImpl()
27 public MockNameImpl(String mockName) { in MockNameImpl() argument
28 this.mockName = mockName; in MockNameImpl()
47 return mockName; in toString()
DMockUtil.java89 MockName mockName = getMockName(mock); in maybeRedefineMockName() local
92 if (mockName.isDefault() && mockSettings instanceof CreationSettings) { in maybeRedefineMockName()
/external/mockito/src/main/java/org/mockito/internal/creation/settings/
DCreationSettings.java30 protected MockName mockName; field in CreationSettings
51 this.mockName = copy.mockName; in CreationSettings()
98 return mockName; in getMockName()
101 public CreationSettings<T> setMockName(MockName mockName) { in setMockName() argument
102 this.mockName = mockName; in setMockName()
/external/easymock/src/org/easymock/internal/
DInvocation.java147 String mockName = mock.toString(); in getMockAndMethodName() local
149 if (toStringIsDefined(mock) && isJavaIdentifier(mockName)) { in getMockAndMethodName()
150 return mockName + "." + methodName; in getMockAndMethodName()
190 public static boolean isJavaIdentifier(String mockName) { in isJavaIdentifier() argument
191 if (mockName.length() == 0 || mockName.indexOf(' ') > -1 in isJavaIdentifier()
192 || !Character.isJavaIdentifierStart(mockName.charAt(0))) { in isJavaIdentifier()
195 for (char c : mockName.substring(1).toCharArray()) { in isJavaIdentifier()
/external/mockito/src/test/java/org/mockitousage/debugging/
DVerboseLoggingOfInvocationsOnMockTest.java63 .doesNotContain(mockName(unrelatedMock)) in shouldNotPrintInvocationOnMockWithoutSetting()
79 .contains(mockName(foo)) in shouldPrintUnstubbedInvocationOnMockToStdOut()
96 .contains(mockName(foo)) in shouldPrintStubbedInvocationOnMockToStdOut()
116 .contains(mockName(foo)) in shouldPrintThrowingInvocationOnMockToStdOut()
136 .contains(mockName(fooSpy)) in shouldPrintRealInvocationOnSpyToStdOut()
158 private String mockName(Object mock) { in mockName() method in VerboseLoggingOfInvocationsOnMockTest
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/filter/
DNameBasedCandidateFilter.java62 String mockName = getMockName(mocks.iterator().next()).toString(); in anotherCandidateMatchesMockName() local
67 && otherCandidateField.getName().equals(mockName)) { in anotherCandidateMatchesMockName()
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DByteBuddyCrossClassLoaderSerializationSupport.java117 MockName mockName = MockUtil.getMockName(mockitoMock); in writeReplace()
120 "The mock '" + mockName + "' of type '" + mockedType + "'", in writeReplace()
/external/mockito/src/main/java/org/mockito/internal/creation/
DMockSettingsImpl.java73 return mockName; in getMockName()