OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:spiedInstance
(Results
1 - 14
of
14
) sorted by null
/external/mockito/src/main/java/org/mockito/internal/util/
MockCreationValidator.java
40
public void validateMockedType(Class<?> classToMock, Object
spiedInstance
) {
41
if (classToMock == null ||
spiedInstance
== null) {
44
if (!classToMock.equals(
spiedInstance
.getClass())) {
45
throw mockedTypeIsInconsistentWithSpiedInstanceType(classToMock,
spiedInstance
);
MockUtil.java
37
Object
spiedInstance
= settings.getSpiedInstance();
38
if (
spiedInstance
!= null) {
39
new LenientCopyTool().copyToMock(
spiedInstance
, mock);
/external/mockito/src/main/java/org/mockito/internal/creation/settings/
CreationSettings.java
28
protected Object
spiedInstance
;
49
this.
spiedInstance
= copy.
spiedInstance
;
88
return
spiedInstance
;
/external/mockito/src/test/java/org/mockitousage/basicapi/
MocksCreationTest.java
87
mock(List.class, withSettings().
spiedInstance
(list));
97
mock(LinkedList.class, withSettings().
spiedInstance
(list));
MocksSerializationForAnnotationTest.java
258
.
spiedInstance
(list)
MocksSerializationTest.java
280
.
spiedInstance
(sample)
/external/mockito/src/main/java/org/mockito/internal/creation/
MockSettingsImpl.java
83
return
spiedInstance
;
93
public MockSettings
spiedInstance
(Object
spiedInstance
) {
94
this.
spiedInstance
=
spiedInstance
;
/external/mockito/src/main/java/org/mockito/
MockSettings.java
104
* Enough warnings about partial mocks, see an example how
spiedInstance
() works:
106
* Foo foo = mock(Foo.class, withSettings().
spiedInstance
(fooInstance));
129
MockSettings
spiedInstance
(Object instance);
Mockito.java
[
all
...]
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/
SpyOnInjectedFieldsHandler.java
44
.
spiedInstance
(instance)
/external/mockito/src/main/java/org/mockito/internal/configuration/
SpyAnnotationEngine.java
76
withSettings().
spiedInstance
(instance)
112
return Mockito.mock(type, settings.
spiedInstance
(constructor.newInstance()));
/cts/tests/tests/slice/src/android/slice/cts/
LocalSliceProvider.java
50
.
spiedInstance
(context.getSystemService(SliceManager.class))
/external/mockito/src/test/java/org/mockitousage/debugging/
VerboseLoggingOfInvocationsOnMockTest.java
127
withSettings().
spiedInstance
(new FooImpl()).verboseLogging());
/external/mockito/src/main/java/org/mockito/internal/exceptions/
Reporter.java
602
public static MockitoException mockedTypeIsInconsistentWithSpiedInstanceType(Class<?> mockedType, Object
spiedInstance
) {
605
"Mocked type must be: " +
spiedInstance
.getClass().getSimpleName() + ", but is: " + mockedType.getSimpleName(),
607
" spy = mock( ->ArrayList.class<- , withSettings().
spiedInstance
( ->new ArrayList()<- );",
609
" spy = mock( ->List.class<- , withSettings().
spiedInstance
( ->new ArrayList()<- );"
[
all
...]
Completed in 527 milliseconds