OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:spiedInstance
(Results
1 - 11
of
11
) sorted by null
/external/mockito/src/org/mockito/internal/util/
MockCreationValidator.java
36
public void validateMockedType(Class classToMock, Object
spiedInstance
) {
37
if (classToMock == null ||
spiedInstance
== null) {
40
if (!classToMock.equals(
spiedInstance
.getClass())) {
41
new Reporter().mockedTypeIsInconsistentWithSpiedInstanceType(classToMock,
spiedInstance
);
MockUtil.java
34
Object
spiedInstance
= settings.getSpiedInstance();
35
if (
spiedInstance
!= null) {
36
new LenientCopyTool().copyToMock(
spiedInstance
, mock);
/external/mockito/src/org/mockito/internal/creation/settings/
CreationSettings.java
27
protected Object
spiedInstance
;
41
this.
spiedInstance
= copy.
spiedInstance
;
72
return
spiedInstance
;
/external/mockito/src/org/mockito/
MockSettings.java
98
* Enough warnings about partial mocks, see an example how
spiedInstance
() works:
100
* Foo foo = mock(Foo.class, withSettings().
spiedInstance
(fooInstance));
123
MockSettings
spiedInstance
(Object instance);
Mockito.java
738
* .
spiedInstance
(list)
[
all
...]
/external/mockito/src/org/mockito/internal/creation/
MockSettingsImpl.java
62
return
spiedInstance
;
70
public MockSettings
spiedInstance
(Object
spiedInstance
) {
71
this.
spiedInstance
=
spiedInstance
;
/external/mockito/src/org/mockito/internal/configuration/injection/
SpyOnInjectedFieldsHandler.java
45
.
spiedInstance
(instance)
/external/mockito/src/org/mockito/internal/configuration/
SpyAnnotationEngine.java
66
.
spiedInstance
(instance)
/external/mockito/src/org/mockito/exceptions/
Reporter.java
565
public void mockedTypeIsInconsistentWithSpiedInstanceType(Class<?> mockedType, Object
spiedInstance
) {
568
"Mocked type must be: " +
spiedInstance
.getClass().getSimpleName() + ", but is: " + mockedType.getSimpleName(),
570
" spy = mock( ->ArrayList.class<- , withSettings().
spiedInstance
( ->new ArrayList()<- );",
572
" spy = mock( ->List.class<- , withSettings().
spiedInstance
( ->new ArrayList()<- );"
[
all
...]
/external/robolectric/lib/test/
mockito-core-1.8.5.jar
/external/dexmaker/lib/
mockito-core-1.9.1-SNAPSHOT.jar
Completed in 904 milliseconds