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

1 2 3 45 6 7 8 91011>>

  /cts/tests/tests/location/
README.txt 2 Note you must enable "Allow mock locations" at Settings > Developer options.
  /external/mockito/src/test/java/org/mockito/internal/configuration/
ClassPathLoaderTest.java 10 import static org.mockito.Mockito.mock;
21 IMethods mock = mock(IMethods.class); local
22 assertEquals("foo", mock.simpleMethod());
  /frameworks/base/test-runner/src/android/test/mock/
MockResources.java 17 package android.test.mock;
35 * A mock {@link android.content.res.Resources} class. All methods are non-functional and throw
57 throw new UnsupportedOperationException("mock object, not implemented");
62 throw new UnsupportedOperationException("mock object, not implemented");
67 throw new UnsupportedOperationException("mock object, not implemented");
72 throw new UnsupportedOperationException("mock object, not implemented");
78 throw new UnsupportedOperationException("mock object, not implemented");
83 throw new UnsupportedOperationException("mock object, not implemented");
88 throw new UnsupportedOperationException("mock object, not implemented");
93 throw new UnsupportedOperationException("mock object, not implemented")
    [all...]
  /hardware/interfaces/automotive/evs/1.0/default/
android.hardware.automotive.evs@1.0-service.rc 1 service evs-hal-mock /vendor/bin/hw/android.hardware.automotive.evs@1.0-service
  /packages/services/Car/evs/sepolicy/
evs_default.te 1 # evs_mock mock hardware driver service
  /system/update_engine/
libupdate_engine-client-test.pc.in 5 Description: update_engine client interface mock library
  /external/mockito/src/test/java/org/mockitousage/stubbing/
SmartNullsStubbingTest.java 23 private IMethods mock; field in class:SmartNullsStubbingTest
27 mock = mock(IMethods.class, Mockito.RETURNS_SMART_NULLS);
30 public IMethods unstubbedMethodInvokedHere(IMethods mock) {
31 return mock.iMethodsReturningMethod();
36 IMethods methods = unstubbedMethodInvokedHere(mock);
67 Foo mock = mock(Foo.class, RETURNS_SMART_NULLS); local
68 Foo foo = mock.getSomeClass();
77 Foo mock = mock(Foo.class, RETURNS_SMART_NULLS) local
88 IMethods mock = mock(IMethods.class, RETURNS_SMART_NULLS); local
    [all...]
  /external/mockito/src/test/java/org/mockitousage/bugs/
CompareMatcherTest.java 7 import static org.mockito.Mockito.mock;
14 import org.mockito.Mock;
25 @Mock
26 public IMethods mock; field in class:CompareMatcherTest
35 final IMethods mock = mock(IMethods.class); local
37 when(mock.forInteger(leq(5))).thenReturn("");
39 assertThat(mock.forInteger(null)).isNull();// a default value must be returned
47 when(mock.forObject(leq(5))).thenReturn("");
49 assertThat(mock.forObject(NOT_A_COMPARABLE)).isNull();// a default value must be returne
    [all...]
  /external/mockito/src/test/java/org/mockitousage/junitrule/
StrictJUnitRuleTest.java 6 import org.mockito.Mock;
25 @Mock IMethods mock; field in class:StrictJUnitRuleTest
26 @Mock IMethods mock2;
29 mock.simpleMethod();
30 verify(mock).simpleMethod();
34 given(mock.simpleMethod(10)).willReturn("foo");
35 mock.simpleMethod(10);
39 given(mock.simpleMethod(10)).willReturn("foo");
40 mock.simpleMethod(10)
    [all...]
LenientJUnitRuleTest.java 5 import org.mockito.Mock;
21 @Mock private IMethods mock; field in class:LenientJUnitRuleTest
26 when(mock.simpleMethod(1)).thenReturn("1");
30 when(mock.simpleMethod(1)).thenReturn("1");
31 mock.simpleMethod(2);
35 when(mock.simpleMethod(1)).thenReturn("1");
36 mock.simpleMethod(2);
  /frameworks/av/drm/mediadrm/plugins/mock/
MockDrmCryptoPlugin.cpp 131 // Properties used in mock test, set by mock plugin and verifed cts test app
132 // byte[] initData -> mock-initdata
133 // string mimeType -> mock-mimetype
134 // string keyType -> mock-keytype
135 // string optionalParameters -> mock-optparams formatted as {key1,value1},{key2,value2}
137 mByteArrayProperties.add(String8("mock-initdata"), initData);
138 mStringProperties.add(String8("mock-mimetype"), mimeType);
142 mStringProperties.add(String8("mock-keytype"), keyTypeStr);
150 mStringProperties.add(String8("mock-optparams"), params)
    [all...]
  /external/mockito/src/test/java/org/mockitousage/basicapi/
MocksCreationTest.java 34 assertNotNull(Mockito.mock(HasPrivateConstructor.class));
40 IMethods mock = mock(IMethods.class, withSettings() local
45 IMethods smartNull = mock.iMethodsReturningMethod();
46 String name = mock.toString();
60 IMethods mock = mock(IMethods.class, withSettings() local
65 String name = mock.toString();
70 assertTrue(mock instanceof List);
76 IMethods mock = mock(IMethods.class, withSettings().name("great mockie")) local
91 mock(List.class, withSettings().spiedInstance(list)); method
100 mock(LinkedList.class, withSettings().spiedInstance(list)); method
    [all...]
  /external/mockito/src/test/java/org/mockitousage/misuse/
InvalidUsageTest.java 11 import org.mockito.Mock;
22 @Mock private IMethods mock; field in class:InvalidUsageTest
23 @Mock private IMethods mockTwo;
47 InOrder inOrder = inOrder(mock);
53 when(mock.simpleMethod()).thenReturn("this stubbing is required to make sure Stubbable is pulled");
59 when(mock.simpleMethod()).thenThrow(new Exception());
64 when(mock.simpleMethod()).thenThrow(new Throwable[] {null});
70 when(mock.simpleMethod()).thenThrow((Throwable) null);
75 when(mock.simpleMethod()).thenThrow(new RuntimeException(), null)
    [all...]
  /external/mockito/src/test/java/org/mockitousage/stacktrace/
PointingStackTraceToActualInvocationChunkInOrderTest.java 12 import org.mockito.Mock;
25 @Mock private IMethods mock; field in class:PointingStackTraceToActualInvocationChunkInOrderTest
26 @Mock private IMethods mockTwo;
31 inOrder = inOrder(mock, mockTwo);
40 mock.simpleMethod(1);
41 mock.simpleMethod(1);
48 mock.simpleMethod(3);
49 mock.simpleMethod(3);
58 inOrder.verify(mock, times(2)).simpleMethod(anyInt())
    [all...]
PointingStackTraceToActualInvocationInOrderTest.java 12 import org.mockito.Mock;
26 @Mock private IMethods mock; field in class:PointingStackTraceToActualInvocationInOrderTest
27 @Mock private IMethods mockTwo;
32 inOrder = inOrder(mock, mockTwo);
41 mock.simpleMethod(1);
47 mock.simpleMethod(3);
55 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt());
59 inOrder.verify(mock).simpleMethod(999);
68 inOrder.verify(mock, atLeastOnce()).simpleMethod(anyInt())
    [all...]
ClickableStackTracesWhenFrameworkMisusedTest.java 10 import org.mockito.Mock;
23 @Mock private IMethods mock; field in class:ClickableStackTracesWhenFrameworkMisusedTest
38 verify(mock).simpleMethod();
48 when(mock.simpleMethod());
56 verify(mock).simpleMethod();
69 mock(IMethods.class);
77 verify(mock);
PointingStackTraceToActualInvocationTest.java 11 import org.mockito.Mock;
26 @Mock private IMethods mock; field in class:PointingStackTraceToActualInvocationTest
27 @Mock private IMethods mockTwo;
38 mock.simpleMethod(1);
44 mock.simpleMethod(3);
53 verify(mock, times(0)).simpleMethod(1);
63 verify(mock, times(0)).simpleMethod(1);
  /external/mockito/src/main/java/org/mockito/internal/verification/
MockAwareVerificationMode.java 15 private final Object mock; field in class:MockAwareVerificationMode
19 public MockAwareVerificationMode(Object mock, VerificationMode mode, Set<VerificationListener> listeners) {
20 this.mock = mock;
28 notifyListeners(new VerificationEventImpl(mock, mode, data, null));
30 notifyListeners(new VerificationEventImpl(mock, mode, data, e));
33 notifyListeners(new VerificationEventImpl(mock, mode, data, e));
46 return mock;
  /external/googletest/googlemock/test/
gmock-nice-strict_test.cc 40 // clash with ::testing::Mock.
41 class Mock {
43 Mock() {}
48 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock);
65 // Defines some mock classes needed by the tests.
112 // Tests that a raw mock generates warnings for uninteresting calls.
123 HasSubstr("Uninteresting mock function call"));
128 // Tests that a raw mock generates warnings for uninteresting calls
129 // that delete the mock object.
142 HasSubstr("Uninteresting mock function call"))
    [all...]
  /external/mockito/src/main/java/org/mockito/
InOrder.java 29 * Alias to <code>inOrder.verify(mock, times(1))</code>
41 * @param mock to be verified
43 * @return mock object itself
45 <T> T verify(T mock);
59 * @param mock to be verified
62 * @return mock object itself
64 <T> T verify(T mock, VerificationMode mode);
73 * mock.foo(); //1st
74 * mock.bar(); //2nd
75 * mock.baz(); //3r
    [all...]
  /external/mockito/src/test/java/org/mockito/internal/verification/checkers/
MissingInvocationCheckerTest.java 14 import org.mockito.Mock;
28 @Mock
29 private IMethods mock; field in class:MissingInvocationCheckerTest
49 exception.expectMessage("mock.simpleMethod()");
50 exception.expectMessage("However, there was exactly 1 interaction with this mock:");
51 exception.expectMessage("mock.differentMethod();");
64 exception.expectMessage("mock.intArgumentMethod(2222);");
66 exception.expectMessage("mock.intArgumentMethod(1111);");
72 return new InvocationBuilder().mock(mock).method("intArgumentMethod").argTypes(int.class)
    [all...]
  /external/mockito/src/test/java/org/mockitousage/junitrunner/
VerboseMockitoRunnerTest.java 13 import org.mockito.Mock;
28 @Mock private IMethods mock; field in class:VerboseMockitoRunnerTest
35 IMethods mock = mock(IMethods.class); local
36 mock.simpleMethod(1);
37 mock.otherMethod();
39 verify(mock).simpleMethod(1);
53 IMethods mock = mock(IMethods.class) local
    [all...]
  /external/mockito/src/test/java/org/mockitousage/matchers/
ReflectionMatchersTest.java 14 import static org.mockito.Mockito.mock;
43 MockMe mock; field in class:ReflectionMatchersTest
47 mock = mock(MockMe.class);
50 mock.run(actual);
56 verify(mock).run(refEq(wanted));
62 verify(mock).run(refEq(wanted));
68 verify(mock).run(refEq(wanted));
74 verify(mock).run(refEq(wanted));
80 verify(mock).run(refEq(wanted))
    [all...]
  /external/v8/testing/gmock/test/
gmock-nice-strict_test.cc 40 // clash with ::testing::Mock.
41 class Mock {
43 Mock() {}
48 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock);
66 // Defines some mock classes needed by the tests.
113 // Tests that a raw mock generates warnings for uninteresting calls.
124 HasSubstr("Uninteresting mock function call"));
129 // Tests that a raw mock generates warnings for uninteresting calls
130 // that delete the mock object.
143 HasSubstr("Uninteresting mock function call"))
    [all...]
  /external/mockito/src/main/java/org/mockito/stubbing/
VoidAnswer1.java 10 * Generic interface to be used for configuring mock's answer for a single 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())).thenAnswer(new Answer&lt;String&gt;() {
24 * mock.someMethod("boom");

Completed in 2756 milliseconds

1 2 3 45 6 7 8 91011>>