Home
last modified time | relevance | path

Searched refs:returnsFirstArg (Results 1 – 3 of 3) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithAdditionalAnswersTest.java12 import static org.mockito.AdditionalAnswers.returnsFirstArg;
49 given(iMethods.objectArgMethod(any())).will(returnsFirstArg()); in can_return_arguments_of_invocation()
62 … given(iMethods.objectArgMethod(any())).will(answersWithDelay(sleepyTime, returnsFirstArg())); in can_return_after_delay()
81 given(iMethods.toIntPrimitive(anyInt())).will(returnsFirstArg()); in can_return_primitives_or_wrappers()
82 given(iMethods.toIntWrapper(anyInt())).will(returnsFirstArg()); in can_return_primitives_or_wrappers()
/external/mockito/src/main/java/org/mockito/
DAdditionalAnswers.java85 public static <T> Answer<T> returnsFirstArg() { in returnsFirstArg() method in AdditionalAnswers
/external/mockito/src/test/java/org/mockitousage/strictness/
DStrictnessPerStubbingTest.java206 lenient().doAnswer(AdditionalAnswers.returnsFirstArg()).when(mock).simpleMethod("1"); in doAnswer_syntax()