HomeSort by relevance Sort by last modified time
    Searched full:mock (Results 201 - 225 of 3601) sorted by null

1 2 3 4 5 6 7 891011>>

  /external/autotest/site_utils/
automated_deploy_unittest.py 10 import mock
30 infra.chdir = mock.MagicMock()
33 @mock.patch.object(infra, 'local_runner')
37 @param run_cmd: Mock of infra.local_runner call used.
42 mock.call('git log prod..123 --oneline', stream_output=True)]
46 @mock.patch.object(infra, 'local_runner')
50 @param run_cmd: Mock of infra.local_runner call used.
55 mock.call('git log prod..123 --oneline', stream_output=True),
56 mock.call('git rebase 123 prod', stream_output=True),
57 mock.call('git push origin prod', stream_output=True)
    [all...]
  /external/mockito/src/main/java/org/mockito/plugins/
MockMaker.java 9 import org.mockito.mock.MockCreationSettings;
41 * @see org.mockito.mock.MockCreationSettings
59 * @param settings Mock creation settings like type to mock, extra interfaces and so on.
63 * @param <T> Type of the mock to return, actually the <code>settings.getTypeToMock</code>.
64 * @return The mock instance.
73 * Returns the handler for the {@code mock}. <b>Do not</b> provide your own implementations at this time
77 * @param mock The mock instance.
78 * @return The mock handler, but may return null - it means that there is no handler attached to provided object
    [all...]
  /external/mockito/src/test/java/org/mockito/internal/verification/
NoMoreInteractionsTest.java 22 import static org.mockito.Mockito.mock;
88 IMethods mock = mock(IMethods.class, "a mock"); local
89 InvocationMatcher i = new InvocationBuilder().mock(mock).toInvocationMatcher();
101 Assertions.assertThat(e.toString()).contains(mock.toString());
109 IMethods mock = mock(IMethods.class, "a mock"); local
    [all...]
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
TelephonyTest.java 48 import android.test.mock.MockContentProvider;
49 import android.test.mock.MockContentResolver;
73 import org.mockito.Mock;
92 @Mock
94 @Mock
96 @Mock
98 @Mock
100 @Mock
102 @Mock
104 @Mock
    [all...]
  /external/autotest/client/bin/net/
net_utils_mock.py 8 from autotest_lib.client.common_lib.test_utils import mock
16 class os_stub(mock.mock_function):
18 mock.mock_function.__init__(self, symbol, *kwargs)
32 class netif_stub(mock.mock_class):
34 mock.mock_class.__init__(self, cls, name, args, *kwargs)
41 class socket_stub(mock.mock_class):
42 """Class use to mock sockets."""
44 mock.mock_class.__init__(self, cls, name, args, *kwargs)
91 self.ethtool = '/mock/ethtool'
  /external/autotest/scheduler/
drones_unittest.py 11 from autotest_lib.client.common_lib.test_utils import mock
19 self.god = mock.mock_god()
21 'mock SSHHost')
23 self.drone_utility_path = 'mock-drone-utility-path'
45 mock_result = utils.CmdResult(stdout=cPickle.dumps('mock return'))
49 connect_timeout=mock.is_instance_comparator(int)).and_return(
52 self.assertEqual('mock return', drone._execute_calls_impl(mock_calls))
64 mock_return['results'] = ['mock return']
71 connect_timeout=mock.is_instance_comparator(int)).and_return(
  /external/mockito/src/main/java/org/mockito/internal/invocation/
InvocationImpl.java 19 * Method call on a mock object.
31 private final Object mock; field in class:InvocationImpl
43 public InvocationImpl(Object mock, MockitoMethod mockitoMethod, Object[] args, int sequenceNumber,
46 this.mock = mock;
55 return mock;
85 return this.mock.equals(other.mock) && this.method.equals(other.method) && this.equalArguments(other.arguments);
117 return realMethod.invoke(mock, rawArguments);
  /external/mockito/src/main/java/org/mockito/verification/
VerificationWithTimeout.java 14 * verify(mock, timeout(100).times(5)).foo();
16 * verify(mock, timeout(100).never()).bar();
18 * verify(mock, timeout(200).atLeastOnce()).baz();
33 * verify(mock, timeout(100).times(2)).someMethod("some arg");
47 * verify(mock, timeout(100).atLeastOnce()).someMethod("some arg");
60 * verify(mock, timeout(100).atLeast(3)).someMethod("some arg");
74 * verify(mock, only()).someMethod();
76 * verify(mock).someMethod();
77 * verifyNoMoreInteractions(mock);
VerificationMode.java 16 * verify(mock, times(5)).someMethod(&quot;was called five times&quot;);
18 * verify(mock, never()).someMethod(&quot;was never called&quot;);
20 * verify(mock, atLeastOnce()).someMethod(&quot;was called at least once&quot;);
22 * verify(mock, atLeast(2)).someMethod(&quot;was called at least twice&quot;);
24 * verify(mock, atMost(3)).someMethod(&quot;was called at most 3 times&quot;);
  /external/mockito/src/test/java/org/mockito/internal/framework/
DefaultMockitoFrameworkTest.java 11 import org.mockito.mock.MockCreationSettings;
60 MockCreationListener listener = mock(MockCreationListener.class);
65 List mock = mock(List.class, settings); local
66 Set mock2 = mock(Set.class);
69 verify(listener).onMockCreated(eq(mock), any(MockCreationSettings.class));
77 MockCreationListener listener = mock(MockCreationListener.class);
81 mock(List.class);
86 mock(Set.class);
  /external/mockito/src/test/java/org/mockitousage/verification/
PrintingVerboseTypesWithArgumentsTest.java 18 import static org.mockito.Mockito.mock;
34 Boo boo = mock(Boo.class);
52 Boo boo = mock(Boo.class);
70 Boo boo = mock(Boo.class);
94 Boo boo = mock(Boo.class);
133 IMethods mock = mock(IMethods.class); local
134 mock.simpleMethod(new Foo(10));
138 verify(mock).simpleMethod(new Foo(20));
  /external/v8/tools/foozzie/
v8_mock.js 15 // Mock Math.random.
24 // Mock Date.
54 // Mock performace.now().
59 // Mock stack traces.
66 // Mock buffer access in float typed arrays because of varying NaN patterns.
70 var mock = function(arrayType) {
80 Float32Array = mock(Float32Array);
81 Float64Array = mock(Float64Array);
84 // Mock Worker.
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
TileQueryHelperTest.java 19 import static org.mockito.Mockito.mock;
54 QSTileHost mockHost = mock(QSTileHost.class);
55 TileAdapter mockAdapter = mock(TileAdapter.class);
56 Runnable mockCompletion = mock(Runnable.class);
64 QSTile mockTile = mock(QSTile.class);
65 State mockState = mock(State.class);
70 QSTileHost mockHost = mock(QSTileHost.class);
77 TileAdapter mockAdapter = mock(TileAdapter.class);
78 Runnable mockCompletion = mock(Runnable.class);
  /external/chromium-trace/catapult/devil/devil/android/tools/
script_common_test.py 16 import mock # pylint: disable=import-error
26 with mock.patch('devil.android.device_utils.DeviceUtils.HealthyDevices',
37 with mock.patch('devil.android.device_utils.DeviceUtils.HealthyDevices',
44 with mock.patch('devil.android.device_utils.DeviceUtils.HealthyDevices',
50 with mock.patch('devil.android.device_utils.DeviceUtils.HealthyDevices',
  /external/libmojo/third_party/catapult/devil/devil/android/tools/
script_common_test.py 16 import mock # pylint: disable=import-error
26 with mock.patch('devil.android.device_utils.DeviceUtils.HealthyDevices',
37 with mock.patch('devil.android.device_utils.DeviceUtils.HealthyDevices',
44 with mock.patch('devil.android.device_utils.DeviceUtils.HealthyDevices',
50 with mock.patch('devil.android.device_utils.DeviceUtils.HealthyDevices',
  /external/mockito/src/main/java/org/mockito/internal/verification/api/
VerificationData.java 21 * All invocations recorded on the mock object that is being verified.
22 * Does not include invocations recorded on other mock objects.
30 * mock.foo(); // <- invocation 1
31 * mock.bar(); // <- invocation 2
33 * verify(mock).bar(); // <- target invocation
  /external/mockito/src/main/java/org/mockito/stubbing/
Answer1.java 10 * Generic interface to be used for configuring mock's answer for a single argument invocation.
12 * Answer specifies an action that is executed and a return value that is returned when you interact with the mock.
14 * Example of stubbing a mock with this custom answer:
17 * when(mock.someMethod(anyString())).thenAnswer(new Answer&lt;Integer, String&gt;() {
24 * System.out.println(mock.someMethod("foo"));
Answer2.java 10 * Generic interface to be used for configuring mock's answer for a two argument invocation.
12 * Answer specifies an action that is executed and a return value that is returned when you interact with the mock.
14 * Example of stubbing a mock with this custom answer:
17 * when(mock.someMethod(anyString(), anyChar())).thenAnswer(new Answer&lt;String, String, Character&gt;() {
24 * System.out.println(mock.someMethod("far", 'b'));
Answer3.java 10 * Generic interface to be used for configuring mock's answer for a three argument invocation.
12 * Answer specifies an action that is executed and a return value that is returned when you interact with the mock.
14 * Example of stubbing a mock with this custom answer:
17 * when(mock.someMethod(anyInt(), anyString(), anyChar())).thenAnswer(
25 * System.out.println(mock.someMethod(3, "xy", 'z'));
VoidAnswer2.java 10 * Generic interface to be used for configuring mock's answer for a two argument invocation that returns nothing.
12 * Answer specifies an action that is executed when you interact with the mock.
14 * Example of stubbing a mock with this custom answer:
17 * when(mock.someMethod(anyString(), anyInt())).thenAnswer(new Answer&lt;String, Integer&gt;() {
24 * mock.someMethod("boom %d", 3);
VoidAnswer3.java 10 * Generic interface to be used for configuring mock's answer for a three argument invocation that returns nothing.
12 * Answer specifies an action that is executed when you interact with the mock.
14 * Example of stubbing a mock with this custom answer:
17 * when(mock.someMethod(anyString(), anyInt(), anyString())).thenAnswer(new Answer&lt;String, Integer, String&gt;() {
24 * mock.someMethod("%s-boom %d", 3, "ka");
VoidAnswer4.java 10 * Generic interface to be used for configuring mock's answer for a four argument invocation that returns nothing.
12 * Answer specifies an action that is executed when you interact with the mock.
14 * Example of stubbing a mock with this custom answer:
17 * when(mock.someMethod(anyString(), anyInt(), anyString(), anyChar())).thenAnswer(
25 * mock.someMethod("%s-boom %c%d", 3, "ka", '&lt;');
  /external/mockito/src/test/java/org/mockitousage/bugs/
BridgeMethodsHitAgainTest.java 9 import org.mockito.Mock;
16 import static org.mockito.Mockito.mock;
42 @Mock SomeSubInterface someSubInterface;
43 @Mock ExtendedFactory extendedFactory;
61 Extended ext = mock(Extended.class);
  /external/mockito/src/test/java/org/mockitousage/matchers/
CustomMatcherDoesYieldCCETest.java 9 import org.mockito.Mock;
20 @Mock
21 private IMethods mock; field in class:CustomMatcherDoesYieldCCETest
25 mock.simpleMethod(new Object());
30 verify(mock).simpleMethod(argThat(isStringWithTextFoo()));
  /external/mockito/src/test/java/org/mockitousage/misuse/
ExplicitFrameworkValidationTest.java 9 import org.mockito.Mock;
24 @Mock IMethods mock; field in class:ExplicitFrameworkValidationTest
28 verify(mock);
37 when(mock.simpleMethod());

Completed in 7659 milliseconds

1 2 3 4 5 6 7 891011>>