HomeSort by relevance Sort by last modified time
    Searched refs:argThat (Results 1 - 25 of 27) sorted by null

1 2

  /cts/common/device-side/util/src/com/android/compatibility/common/util/
MoreMatchers.java 25 return ArgumentMatchers.argThat(value -> true);
29 return ArgumentMatchers.argThat(value -> true);
CtsMouseUtil.java 19 import static org.mockito.Matchers.argThat;
150 argThat(new ActionMatcher(MotionEvent.ACTION_HOVER_EXIT)));
157 argThat(new ActionMatcher(MotionEvent.ACTION_HOVER_ENTER)));
159 argThat(new ActionMatcher(MotionEvent.ACTION_HOVER_MOVE)));
WidgetTestUtils.java 22 import static org.mockito.hamcrest.MockitoHamcrest.argThat;
165 return argThat(new BaseMatcher<CharSequence>() {
189 return argThat(new BaseMatcher<Editable>() {
  /cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
MoreMatchers.java 25 return ArgumentMatchers.argThat(value -> true);
29 return ArgumentMatchers.argThat(value -> true);
CtsMouseUtil.java 19 import static org.mockito.Matchers.argThat;
150 argThat(new ActionMatcher(MotionEvent.ACTION_HOVER_EXIT)));
157 argThat(new ActionMatcher(MotionEvent.ACTION_HOVER_ENTER)));
159 argThat(new ActionMatcher(MotionEvent.ACTION_HOVER_MOVE)));
WidgetTestUtils.java 22 import static org.mockito.hamcrest.MockitoHamcrest.argThat;
165 return argThat(new BaseMatcher<CharSequence>() {
189 return argThat(new BaseMatcher<Editable>() {
  /external/mockito/src/test/java/org/mockitousage/matchers/
CustomMatcherDoesYieldCCETest.java 15 import static org.mockito.Matchers.argThat;
30 verify(mock).simpleMethod(argThat(isStringWithTextFoo()));
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>() {
CustomMatchersTest.java 116 when(mock.oneArg(argThat(new ContainsFoo()))).thenReturn("foo");
135 return argThat(new StringThatContainsXxx());
149 verify(mock).simpleMethod((String) argThat(new ArgumentMatcher<Object>() {
  /external/mockito/src/test/java/org/mockito/internal/listeners/
StubbingLookupNotifierTest.java 19 import static org.mockito.ArgumentMatchers.argThat;
55 verify(listener1).onStubbingLookup(argThat(new EventArgumentMatcher()));
56 verify(listener2).onStubbingLookup(argThat(new EventArgumentMatcher()));
  /external/mockito/src/test/java/org/mockitousage/bugs/
CompareMatcherTest.java 9 import static org.mockito.Matchers.argThat;
103 when(mock.forObject(argThat(new TestMatcher()))).thenReturn("x");
117 when(mock.forObject(argThat(new TestMatcher()))).thenReturn("x");
130 when(mock.forObject(argThat(new GenericMatcher<Integer>()))).thenReturn("x");
  /external/mockito/src/main/java/org/mockito/
ArgumentCaptor.java 83 Mockito.argThat(capturingMatcher);
ArgumentMatchers.java     [all...]
  /cts/tests/autofillservice/src/android/autofillservice/cts/
DateTransformationTest.java 20 import static org.mockito.ArgumentMatchers.argThat;
97 argThat(new CharSequenceMatcher("12/2012")));
CharSequenceTransformationTest.java 20 import static org.mockito.ArgumentMatchers.argThat;
149 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("...3456")));
166 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("****")));
204 argThat(new CharSequenceMatcher("myUserName/..rd")));
246 verify(template).setCharSequence(eq(0), any(), argThat(new CharSequenceMatcher("ACB")));
  /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...]
  /cts/tests/tests/appwidget/src/android/appwidget/cts/
AppWidgetTest.java 35 import static org.mockito.hamcrest.MockitoHamcrest.argThat;
311 any(AppWidgetManager.class), eq(firstAppWidgetId), argThat(
316 any(AppWidgetManager.class), eq(secondAppWidgetId), argThat(
319 argThat(new WidgetIdsMatcher(new int[]{firstAppWidgetId})));
321 argThat(new WidgetIdsMatcher(new int[]{secondAppWidgetId})));
403 argThat(new WidgetIdsMatcher(new int[]{firstAppWidgetId})));
412 argThat(new WidgetIdsMatcher(new int[] {secondAppWidgetId})));
    [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;
154 eq(view), argThat(new PositionMatcher(action, x, y)));
305 eq(mTarget2), argThat(new ActionMatcher(MotionEvent.ACTION_HOVER_EXIT)));
  /cts/tests/admin/src/android/admin/cts/
DeviceAdminReceiverTest.java 27 import static org.mockito.Mockito.argThat;
243 return argThat(x -> expected.equals(x.getAction()));
  /cts/tests/tests/transition/src/android/transition/cts/
ChangeBoundsTest.java 25 import static org.mockito.ArgumentMatchers.argThat;
228 Mockito.verify(points, within(3000)).add(argThat(redAndGreen ->
241 Mockito.verify(points, within(3000)).add(argThat(redAndGreen ->
  /cts/tests/tests/widget/src/android/widget/cts/
NumberPickerTest.java 24 import static org.mockito.ArgumentMatchers.argThat;
306 any(), eq(mNumberPicker), argThat(event -> event.getEventType()
440 argThat(event -> event.getEventType() == AccessibilityEvent.TYPE_VIEW_SCROLLED));
  /cts/tests/tests/widget/src/android/widget/cts/util/
TestUtils.java 20 import static org.mockito.hamcrest.MockitoHamcrest.argThat;
341 return argThat(new BaseMatcher<ColorStateList>() {
  /cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
AccessibilityEndToEndTest.java 41 import static org.mockito.ArgumentMatchers.argThat;
    [all...]
  /cts/tests/tests/print/printTestUtilLib/src/android/print/test/
BasePrintTest.java 34 import static org.mockito.hamcrest.MockitoHamcrest.argThat;
820 any(CancellationSignal.class), any(LayoutResultCallback.class), argThat(
    [all...]

Completed in 2584 milliseconds

1 2