OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mockHandler
(Results
1 - 18
of
18
) sorted by null
/external/mockito/src/main/java/org/mockito/internal/handler/
InvocationNotifierHandler.java
13
import org.mockito.invocation.
MockHandler
;
22
* Also imposterize MockHandlerImpl, delegate all call of InternalMockHandler to the real
mockHandler
24
class InvocationNotifierHandler<T> implements
MockHandler
, InternalMockHandler<T> {
27
private final InternalMockHandler<T>
mockHandler
;
29
public InvocationNotifierHandler(InternalMockHandler<T>
mockHandler
, MockCreationSettings<T> settings) {
30
this.
mockHandler
=
mockHandler
;
36
Object returnedValue =
mockHandler
.handle(invocation);
67
return
mockHandler
.getMockSettings();
71
mockHandler
.setAnswersForStubbing(answers)
[
all
...]
/external/slf4j/slf4j-jdk14/src/test/java/org/slf4j/impl/
JDK14AdapterLoggerNameTest.java
34
private
MockHandler
mockHandler
;
39
mockHandler
= new
MockHandler
();
41
logger.addHandler(
mockHandler
);
71
assertNotNull("no log record",
mockHandler
.record);
72
assertNotNull("missing logger name",
mockHandler
.record.getLoggerName());
75
private class
MockHandler
extends java.util.logging.Handler {
/external/mockito/src/main/java/org/mockito/internal/util/
DefaultMockingDetails.java
46
return
mockHandler
().getInvocationContainer().getInvocations();
51
return
mockHandler
().getMockSettings();
56
List<? extends Stubbing> stubbings =
mockHandler
().getInvocationContainer().getStubbedInvocations();
68
private InternalMockHandler<Object>
mockHandler
() {
MockUtil.java
15
import org.mockito.invocation.
MockHandler
;
33
MockHandler
mockHandler
= createMockHandler(settings);
35
T mock = mockMaker.createMock(settings,
mockHandler
);
48
MockHandler
newHandler = createMockHandler(settings);
59
MockHandler
handler = mockMaker.getHandler(mock);
/external/mockito/src/test/java/org/mockito/internal/handler/
InvocationNotifierHandlerTest.java
48
@Mock private MockHandlerImpl<ArrayList<Answer<?>>>
mockHandler
;
55
mockHandler
,
63
given(
mockHandler
.handle(invocation)).willReturn("returned value");
77
given(
mockHandler
.handle(invocation)).willReturn(computedException);
91
given(
mockHandler
.handle(invocation)).willThrow(parseException);
126
verify(
mockHandler
).getInvocationContainer();
127
verify(
mockHandler
).getMockSettings();
128
verify(
mockHandler
).setAnswersForStubbing(ArgumentMatchers.<Answer<?>>anyList());
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
RemoteManagerFuncTest.java
388
ICommandResultHandler
mockHandler
= EasyMock.createStrictMock(ICommandResultHandler.class);
389
mockHandler
.notAllocated();
396
EasyMock.replay(
mockHandler
);
398
mRemoteClient.sendGetLastCommandResult("foo",
mockHandler
);
400
EasyMock.verify(
mockHandler
);
407
ICommandResultHandler
mockHandler
= EasyMock.createStrictMock(ICommandResultHandler.class);
408
mockHandler
.noActiveCommand();
413
EasyMock.replay(mMockDeviceManager, device,
mockHandler
);
422
mRemoteClient.sendGetLastCommandResult("serial",
mockHandler
);
425
EasyMock.verify(
mockHandler
, mMockDeviceManager)
[
all
...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
BatteryEntryTest.java
56
@Mock private Handler
mockHandler
;
77
return new BatteryEntry(mockContext,
mockHandler
, mockUserManager, createSipperForApp());
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
BaseModelUpdateTaskTestCase.java
105
DeferredHandler
mockHandler
= mock(DeferredHandler.class);
108
f.set(task,
mockHandler
);
112
verify(
mockHandler
, atLeast(0)).post(captor.capture());
/prebuilts/devtools/tools/lib/
easymock-3.3.jar
/prebuilts/tools/common/m2/repository/org/easymock/easymock/3.3/
easymock-3.3.jar
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.2.5/
mockito-core-2.2.5.jar
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.7.1/
mockito-core-2.7.1.jar
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.7.6/
mockito-core-2.7.6.jar
/prebuilts/misc/common/robolectric/lib/
mockito-core-1.10.19.jar
/prebuilts/tools/common/m2/repository/org/mockito/mockito-all/1.9.5/
mockito-all-1.9.5.jar
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/1.10.19/
mockito-core-1.10.19.jar
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/1.9.5/
mockito-core-1.9.5.jar
/external/robolectric/v1/lib/test/
mockito-core-1.8.5.jar
Completed in 218 milliseconds