/external/easymock/src/org/easymock/ |
H A D | IAnswer.java | 19 * Used to answer expected calls.
24 * is called by EasyMock to answer an expected call.
25 * The answer may be to return a value, or to throw an exception.
26 * The arguments of the call for which the answer is generated
33 T answer() throws Throwable;
method in interface:IAnswer
|
/external/mockito/src/org/mockito/stubbing/ |
H A D | Answer.java | 10 * Generic interface to be used for configuring mock's answer.
13 * Example of stubbing a mock with custom answer:
17 * Object answer(InvocationOnMock invocation) {
38 T answer(InvocationOnMock invocation) throws Throwable;
method in interface:Answer
|
H A D | DeprecatedOngoingStubbing.java | 69 * public Integer answer(InvocationOnMock invocation) throws Throwable {
75 * @param answer the custom answer to execute.
79 DeprecatedOngoingStubbing<T> toAnswer(Answer<?> answer);
argument
|
H A D | VoidMethodStubbable.java | 76 * public Object answer(InvocationOnMOck invocation) {
86 * @param answer the custom answer to execute.
90 VoidMethodStubbable<T> toAnswer(Answer<?> answer);
argument
|
H A D | OngoingStubbing.java | 151 * public Integer answer(InvocationOnMock invocation) throws Throwable {
157 * @param answer the custom answer to execute.
161 OngoingStubbing<T> thenAnswer(Answer<?> answer);
argument 176 * @param answer the custom answer to execute.
182 OngoingStubbing<T> then(Answer<?> answer);
argument
|
/external/mockito/src/org/mockito/internal/stubbing/answers/ |
H A D | AnswerReturnValuesAdapter.java | 24 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:AnswerReturnValuesAdapter
|
H A D | CallsRealMethods.java | 35 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:CallsRealMethods
|
H A D | ClonesArguments.java | 13 //TODO this needs documentation and further analysis - what if someone changes the answer?
16 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:ClonesArguments 24 return new ReturnsEmptyValues().answer(invocation);
|
H A D | DoesNothing.java | 16 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:DoesNothing
|
H A D | ReturnsElementsOf.java | 45 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:ReturnsElementsOf
|
H A D | Returns.java | 21 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:Returns
|
H A D | ThrowsException.java | 24 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:ThrowsException
|
H A D | ThrowsExceptionClass.java | 25 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ThrowsExceptionClass
|
/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/ |
H A D | ForwardsInvocations.java | 14 * Internal answer to forward invocations on a real instance. 28 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ForwardsInvocations
|
H A D | GloballyConfiguredAnswer.java | 23 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:GloballyConfiguredAnswer 24 return new GlobalConfiguration().getDefaultAnswer().answer(invocation);
|
H A D | ReturnsEmptyValues.java | 32 * Default answer of every Mockito mock. 61 * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock) 63 public Object answer(InvocationOnMock invocation) { method in class:ReturnsEmptyValues
|
H A D | ReturnsMocks.java | 20 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:ReturnsMocks 21 Object ret = delegate.answer(invocation);
|
H A D | ReturnsMoreEmptyValues.java | 54 * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock) 56 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ReturnsMoreEmptyValues 57 Object ret = delegate.answer(invocation);
|
H A D | ReturnsSmartNulls.java | 42 public Object answer(final InvocationOnMock invocation) throws Throwable {
method in class:ReturnsSmartNulls 43 Object defaultReturnValue = delegate.answer(invocation);
64 public Object answer(InvocationOnMock currentInvocation) throws Throwable {
method in class:ReturnsSmartNulls.ThrowsSmartNullPointer
|
/external/easymock/src/org/easymock/internal/ |
H A D | Result.java | 41 public Object answer() throws Throwable {
58 public Object answer() throws Throwable {
75 public Object answer() throws Throwable {
98 public static Result createAnswerResult(IAnswer<?> answer) {
argument 99 return new Result(answer, false);
102 public Object answer() throws Throwable {
method in class:Result 103 return value.answer();
|
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | SortedListsTest.java | 41 void assertModelAgrees(List<Integer> list, Integer key, int answer, argument 46 assertEquals(list.indexOf(key), answer); 52 assertEquals(list.lastIndexOf(key), answer); 58 assertEquals(key, list.get(answer)); 64 assertEquals(list.lastIndexOf(key) + 1, answer); 70 assertEquals(list.indexOf(key) - 1, answer); 84 assertEquals(nextHigherIndex - 1, answer); 87 assertEquals(nextHigherIndex, answer); 90 assertEquals(-1 - nextHigherIndex, answer);
|
/external/mockito/src/org/mockito/internal/stubbing/ |
H A D | ConsecutiveStubbing.java | 18 public OngoingStubbing<T> thenAnswer(Answer<?> answer) {
argument 19 invocationContainerImpl.addConsecutiveAnswer(answer);
23 public OngoingStubbing<T> then(Answer<?> answer) {
argument 24 return thenAnswer(answer);
27 public DeprecatedOngoingStubbing<T> toAnswer(Answer<?> answer) {
argument 28 invocationContainerImpl.addConsecutiveAnswer(answer);
|
H A D | OngoingStubbingImpl.java | 23 public OngoingStubbing<T> thenAnswer(Answer<?> answer) {
argument 28 invocationContainerImpl.addAnswer(answer);
32 public OngoingStubbing<T> then(Answer<?> answer) {
argument 33 return thenAnswer(answer);
36 public DeprecatedOngoingStubbing<T> toAnswer(Answer<?> answer) {
argument 37 invocationContainerImpl.addAnswer(answer);
|
H A D | StubbedInvocationMatcher.java | 23 public StubbedInvocationMatcher(InvocationMatcher invocation, Answer answer) {
argument 25 this.answers.add(answer);
28 public Object answer(InvocationOnMock invocation) throws Throwable {
method in class:StubbedInvocationMatcher 34 return a.answer(invocation);
37 public void addAnswer(Answer answer) {
argument 38 answers.add(answer);
|
H A D | VoidMethodStubbableImpl.java | 31 public VoidMethodStubbable<T> toAnswer(Answer<?> answer) {
argument 32 invocationContainerImpl.addAnswerForVoidMethod(answer);
|