/external/mockito/src/main/java/org/mockito/hamcrest/ |
MockitoHamcrest.java | 31 * import static org.mockito.hamcrest.MockitoHamcrest.argThat; 34 * when(mock.giveMe(argThat(new MyHamcrestMatcher()))); 37 * verify(mock).giveMe(argThat(new MyHamcrestMatcher())); 60 public static <T> T argThat(Matcher<T> matcher) { 67 * Note that {@link #argThat} will not work with primitive <code>char</code> matchers due to <code>NullPointerException</code> auto-unboxing caveat. 81 * Note that {@link #argThat} will not work with primitive <code>boolean</code> matchers due to <code>NullPointerException</code> auto-unboxing caveat. 95 * Note that {@link #argThat} will not work with primitive <code>byte</code> matchers due to <code>NullPointerException</code> auto-unboxing caveat. 109 * Note that {@link #argThat} will not work with primitive <code>short</code> matchers due to <code>NullPointerException</code> auto-unboxing caveat. 123 * Note that {@link #argThat} will not work with primitive <code>int</code> matchers due to <code>NullPointerException</code> auto-unboxing caveat. 137 * Note that {@link #argThat} will not work with primitive <code>long</code> matchers due to <code>NullPointerException</code> (…) [all...] |
/external/mockito/src/test/java/org/mockitousage/matchers/ |
HamcrestMatchersTest.java | 42 when(mock.simpleMethod(argThat(new ContainsX()))).thenReturn("X"); 52 verify(mock).simpleMethod(argThat(new ContainsX())); 68 when(mock.intArgumentReturningInt(argThat(new IntMatcher()))).thenReturn(5); 107 argThat(new NonGenericMatcher()); 113 when(mock.simpleMethod(Mockito.argThat(new ArgumentMatcher<String>() {
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
CtsMouseUtil.java | 19 import static org.mockito.Matchers.argThat; 118 argThat(new ActionMatcher(MotionEvent.ACTION_HOVER_EXIT))); 125 argThat(new ActionMatcher(MotionEvent.ACTION_HOVER_ENTER))); 127 argThat(new ActionMatcher(MotionEvent.ACTION_HOVER_MOVE)));
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
CharSequenceTransformationTest.java | 20 import static org.mockito.ArgumentMatchers.argThat; 147 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("...3456"))); 164 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("****"))); 202 argThat(new CharSequenceMatcher("myUserName/..rd")));
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/instrumentation/ |
SharedPreferenceLoggerTest.java | 47 import static org.mockito.Matchers.argThat; 90 argThat(mNamePairMatcher), 91 argThat(pairMatches(FIELD_SETTINGS_PREFERENCE_CHANGE_INT_VALUE, Integer.class))); 105 argThat(mNamePairMatcher), 106 argThat(pairMatches(FIELD_SETTINGS_PREFERENCE_CHANGE_INT_VALUE, true))); 108 argThat(mNamePairMatcher), 109 argThat(pairMatches(FIELD_SETTINGS_PREFERENCE_CHANGE_INT_VALUE, false))); 122 argThat(mNamePairMatcher), 123 argThat(pairMatches(FIELD_SETTINGS_PREFERENCE_CHANGE_INT_VALUE, Integer.class))); 134 argThat(mNamePairMatcher) [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
HoverTest.java | 25 import static org.mockito.Matchers.argThat; 139 argThat(new ActionMatcher(MotionEvent.ACTION_HOVER_ENTER))); 141 argThat(new PositionMatcher(MotionEvent.ACTION_HOVER_MOVE, 1, 2))); 143 argThat(new PositionMatcher(MotionEvent.ACTION_HOVER_MOVE, 3, 4))); 145 argThat(new PositionMatcher(MotionEvent.ACTION_HOVER_MOVE, 5, 6)));
|
PointerCaptureTest.java | 29 import static org.mockito.Matchers.argThat; 149 eq(view), argThat(new PositionMatcher(action, x, y))); 299 eq(mTarget2), argThat(new ActionMatcher(MotionEvent.ACTION_HOVER_EXIT)));
|
/external/mockito/src/main/java/org/mockito/ |
ArgumentMatchers.java | [all...] |
/cts/tests/camera/src/android/hardware/camera2/cts/ |
SurfaceViewPreviewTest.java | [all...] |
CameraDeviceTest.java | [all...] |
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
AppWidgetTest.java | 29 import static org.mockito.hamcrest.MockitoHamcrest.argThat; 298 any(AppWidgetManager.class), same(firstAppWidgetId), argThat( 303 any(AppWidgetManager.class), same(secondAppWidgetId), argThat( 306 argThat(new WidgetIdsMatcher(new int[]{firstAppWidgetId}))); 308 argThat(new WidgetIdsMatcher(new int[]{secondAppWidgetId}))); 393 argThat(new WidgetIdsMatcher(new int[]{firstAppWidgetId}))); 402 argThat(new WidgetIdsMatcher(new int[] {secondAppWidgetId}))); [all...] |
/frameworks/base/services/tests/notification/src/com/android/server/notification/ |
BuzzBeepBlinkTest.java | 32 import static org.mockito.Matchers.argThat; 351 verify(mVibrator, times(1)).vibrate(anyInt(), anyString(), argThat(mVibrateOnceMatcher), 356 verify(mVibrator, times(1)).vibrate(anyInt(), anyString(), argThat(mVibrateLoopMatcher), 362 argThat(mVibrateLoopMatcher), (AudioAttributes) anyObject()); [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
MotionEventInjectorTest.java | 38 import static org.mockito.hamcrest.MockitoHamcrest.argThat; 183 verify(next).onMotionEvent(argThat(mIsLineStart), argThat(mIsLineStart), 191 verify(next).onMotionEvent(argThat(allOf(mIsLineMiddle, hasRightDownTime)), 192 argThat(allOf(mIsLineMiddle, hasRightDownTime)), eq(FLAG_PASS_TO_USER)); 199 verify(next).onMotionEvent(argThat(allOf(mIsLineEnd, hasRightDownTime)), 200 argThat(allOf(mIsLineEnd, hasRightDownTime)), eq(FLAG_PASS_TO_USER)); 238 verify(next).onMotionEvent(argThat(mIsClickDown), argThat(mIsClickDown), eq(0)); 254 argThat(mIsLineStart), argThat(mIsLineStart), eq(FLAG_PASS_TO_USER)) [all...] |
/cts/tests/tests/print/src/android/print/cts/ |
BasePrintTest.java | 33 import static org.mockito.hamcrest.MockitoHamcrest.argThat; 756 any(CancellationSignal.class), any(LayoutResultCallback.class), argThat( [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
WifiServiceImplTest.java | [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
DevicePolicyManagerTest.java | 46 import static org.mockito.hamcrest.MockitoHamcrest.argThat; [all...] |
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.2.29/ |
mockito-core-2.2.29.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 | |
/external/robolectric/v1/lib/test/ |
mockito-core-1.8.5.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 | |