Searched refs:mockName (Results 1 – 8 of 8) sorted by relevance
14 private final String mockName; field in MockNameImpl18 public MockNameImpl(String mockName, Class<?> classToMock) { in MockNameImpl() argument19 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() argument28 this.mockName = mockName; in MockNameImpl()47 return mockName; in toString()
89 MockName mockName = getMockName(mock); in maybeRedefineMockName() local92 if (mockName.isDefault() && mockSettings instanceof CreationSettings) { in maybeRedefineMockName()
30 protected MockName mockName; field in CreationSettings51 this.mockName = copy.mockName; in CreationSettings()98 return mockName; in getMockName()101 public CreationSettings<T> setMockName(MockName mockName) { in setMockName() argument102 this.mockName = mockName; in setMockName()
147 String mockName = mock.toString(); in getMockAndMethodName() local149 if (toStringIsDefined(mock) && isJavaIdentifier(mockName)) { in getMockAndMethodName()150 return mockName + "." + methodName; in getMockAndMethodName()190 public static boolean isJavaIdentifier(String mockName) { in isJavaIdentifier() argument191 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()
63 .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
62 String mockName = getMockName(mocks.iterator().next()).toString(); in anotherCandidateMatchesMockName() local67 && otherCandidateField.getName().equals(mockName)) { in anotherCandidateMatchesMockName()
117 MockName mockName = MockUtil.getMockName(mockitoMock); in writeReplace()120 "The mock '" + mockName + "' of type '" + mockedType + "'", in writeReplace()
73 return mockName; in getMockName()