OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:typeToMock
(Results
1 - 5
of
5
) sorted by null
/external/mockito/src/org/mockito/internal/creation/settings/
CreationSettings.java
24
protected Class<T>
typeToMock
;
38
this.
typeToMock
= copy.
typeToMock
;
50
return
typeToMock
;
53
public CreationSettings<T> setTypeToMock(Class<T>
typeToMock
) {
54
this.
typeToMock
=
typeToMock
;
/external/mockito/src/org/mockito/internal/creation/
MockSettingsImpl.java
138
return
typeToMock
;
141
public MockCreationSettings<T> confirm(Class<T>
typeToMock
) {
142
return validatedSettings(
typeToMock
, this);
145
private static <T> CreationSettings<T> validatedSettings(Class<T>
typeToMock
, CreationSettings<T> source) {
148
validator.validateType(
typeToMock
);
149
validator.validateExtraInterfaces(
typeToMock
, source.getExtraInterfaces());
150
validator.validateMockedType(
typeToMock
, source.getSpiedInstance());
155
validator.validateSerializable(
typeToMock
, source.isSerializable());
158
settings.setMockName(new MockNameImpl(source.getName(),
typeToMock
));
159
settings.setTypeToMock(
typeToMock
);
[
all
...]
/external/dexmaker/src/mockito/java/com/google/dexmaker/mockito/
DexmakerMockMaker.java
38
Class<T>
typeToMock
= settings.getTypeToMock();
43
if (
typeToMock
.isInterface()) {
46
classesToMock[0] =
typeToMock
;
49
@SuppressWarnings("unchecked") // newProxyInstance returns the type of
typeToMock
57
Class<? extends T> proxyClass = ProxyBuilder.forClass(
typeToMock
)
68
throw new MockitoException("Failed to mock " +
typeToMock
, e);
/external/mockito/src/org/mockito/internal/
MockitoCore.java
43
public boolean isTypeMockable(Class<?>
typeToMock
) {
44
return mockUtil.isTypeMockable(
typeToMock
);
47
public <T> T mock(Class<T>
typeToMock
, MockSettings settings) {
54
MockCreationSettings<T> creationSettings = impl.confirm(
typeToMock
);
56
mockingProgress.mockingStarted(mock,
typeToMock
);
/external/dexmaker/lib/
mockito-core-1.9.1-SNAPSHOT.jar
Completed in 44 milliseconds