HomeSort by relevance Sort by last modified time
    Searched defs:answer (Results 1 - 25 of 262) sorted by null

1 2 3 4 5 6 7 8 91011

  /external/v8/tools/gyp/test/win/lib-crosscompile/
answer.cc 5 #include "answer.h"
7 int answer() { function
  /external/v8/tools/gyp/test/win/lib-flags/
answer.cc 5 #include "answer.h"
7 int answer() { function
  /toolchain/binutils/binutils-2.25/gold/testsuite/
arm_exidx_test.s 3 .section .text.answer,"ax",%progbits
5 .global answer
6 .type answer, %function
7 answer: label
13 .size answer, .-answer
  /external/easymock/src/org/easymock/
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/
Answer.java 10 * Generic interface to be used for configuring mock's answer.
11 * Answer specifies an action that is executed and a return value that is returned when you interact with the mock.
13 * Example of stubbing a mock with custom answer:
16 * when(mock.someMethod(anyString())).thenAnswer(new Answer() {
17 * Object answer(InvocationOnMock invocation) {
30 public interface Answer<T> {
38 T answer(InvocationOnMock invocation) throws Throwable; method in interface:Answer
  /external/proguard/examples/annotations/examples/
NativeCallBack.java 18 * Suppose this is a native method that computes an answer.
48 int answer = new NativeCallBack().computeAnswer(); local
50 System.out.println("The answer is " + answer);
  /prebuilts/tools/common/proguard/proguard4.7/examples/annotations/examples/
NativeCallBack.java 17 * Suppose this is a native method that computes an answer.
40 int answer = new NativeCallBack().computeAnswer(); local
42 System.out.println("The answer is " + answer);
  /external/mockito/src/org/mockito/internal/stubbing/answers/
AnswerReturnValuesAdapter.java 11 import org.mockito.stubbing.Answer;
15 public class AnswerReturnValuesAdapter implements Answer<Object>, Serializable {
24 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:AnswerReturnValuesAdapter
CallsRealMethods.java 10 import org.mockito.stubbing.Answer;
13 * Optional Answer that adds partial mocking support
15 * {@link Answer} can be used to define the return values of unstubbed invocations.
32 public class CallsRealMethods implements Answer<Object>, Serializable {
35 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:CallsRealMethods
ClonesArguments.java 10 import org.mockito.stubbing.Answer;
13 //TODO this needs documentation and further analysis - what if someone changes the answer?
15 public class ClonesArguments implements Answer<Object> {
16 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ClonesArguments
24 return new ReturnsEmptyValues().answer(invocation);
DoesNothing.java 10 import org.mockito.stubbing.Answer;
12 public class DoesNothing implements Answer<Object>, Serializable {
16 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:DoesNothing
ReturnsElementsOf.java 9 import org.mockito.stubbing.Answer;
33 public class ReturnsElementsOf implements Answer<Object> {
45 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ReturnsElementsOf
Returns.java 10 import org.mockito.stubbing.Answer;
12 public class Returns implements Answer<Object>, Serializable {
21 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:Returns
ThrowsException.java 10 import org.mockito.stubbing.Answer;
14 public class ThrowsException implements Answer<Object>, Serializable {
24 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ThrowsException
ThrowsExceptionClass.java 10 import org.mockito.stubbing.Answer;
15 public class ThrowsExceptionClass implements Answer<Object>, Serializable {
25 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ThrowsExceptionClass
  /external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
ForwardsInvocations.java 8 import org.mockito.stubbing.Answer;
14 * Internal answer to forward invocations on a real instance.
18 public class ForwardsInvocations implements Answer<Object>, Serializable {
28 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ForwardsInvocations
GloballyConfiguredAnswer.java 12 import org.mockito.stubbing.Answer;
15 * Globally configured Answer.
19 public class GloballyConfiguredAnswer implements Answer<Object>, Serializable {
23 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:GloballyConfiguredAnswer
24 return new GlobalConfiguration().getDefaultAnswer().answer(invocation);
ReturnsEmptyValues.java 13 import org.mockito.stubbing.Answer;
32 * Default answer of every Mockito mock.
54 public class ReturnsEmptyValues implements Answer<Object>, Serializable {
61 * @see org.mockito.stubbing.Answer#answer(org.mockito.invocation.InvocationOnMock)
63 public Object answer(InvocationOnMock invocation) { method in class:ReturnsEmptyValues
ReturnsMocks.java 12 import org.mockito.stubbing.Answer;
14 public class ReturnsMocks implements Answer<Object>, Serializable {
18 private Answer<Object> delegate = new ReturnsMoreEmptyValues();
20 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:ReturnsMocks
21 Object ret = delegate.answer(invocation);
ReturnsMoreEmptyValues.java 13 import org.mockito.stubbing.Answer;
48 public class ReturnsMoreEmptyValues implements Answer<Object>, Serializable {
51 private Answer<Object> delegate = new ReturnsEmptyValues();
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);
ReturnsSmartNulls.java 16 import org.mockito.stubbing.Answer;
19 * Optional Answer that can be used with
20 * {@link Mockito#mock(Class, Answer)}
25 * Answer returns SmartNulls instead of nulls.
36 public class ReturnsSmartNulls implements Answer<Object>, Serializable {
40 private final Answer<Object> delegate = new ReturnsMoreEmptyValues();
42 public Object answer(final InvocationOnMock invocation) throws Throwable { method in class:ReturnsSmartNulls
43 Object defaultReturnValue = delegate.answer(invocation);
55 private static class ThrowsSmartNullPointer implements Answer {
64 public Object answer(InvocationOnMock currentInvocation) throws Throwable { method in class:ReturnsSmartNulls.ThrowsSmartNullPointer
    [all...]
  /external/v8/test/mjsunit/
unicodelctest-no-optimization.js 34 var answer = get_answer(); variable
40 assertTrue(!!re.test(s) == !!answer[i]);
52 for (var i = 0x10000; i < 0x110000 && i < answer.length + 256; i++) {
54 assertTrue(!!re.test(BuildSurrogatePair(c)) == !!answer[i]);
    [all...]
unicodelctest.js 33 var answer = get_answer(); variable
39 assertTrue(!!re.test(s) == !!answer[i]);
51 for (var i = 0x10000; i < 0x110000 && i < answer.length + 256; i++) {
53 assertTrue(!!re.test(BuildSurrogatePair(c)) == !!answer[i]);
    [all...]
  /frameworks/base/tests/utils/testutils/java/android/app/test/
MockAnswerUtil.java 20 import org.mockito.stubbing.Answer;
32 * Answer that calls the method in the Answer called "answer" that matches the type signature of
36 public static class AnswerWithArguments implements Answer<Object> {
38 public final Object answer(InvocationOnMock invocation) throws Throwable { method in class:MockAnswerUtil.AnswerWithArguments
41 Method implementation = getClass().getMethod("answer", method.getParameterTypes());
43 throw new RuntimeException("Found answer method does not have expected return "
51 throw new RuntimeException("Error invoking answer method", e);
56 throw new RuntimeException("Could not find answer method with the expected args
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
MockAnswerUtil.java 20 import org.mockito.stubbing.Answer;
32 * Answer that calls the method in the Answer called "answer" that matches the type signature of
36 public static class AnswerWithArguments implements Answer<Object> {
38 public final Object answer(InvocationOnMock invocation) throws Throwable { method in class:MockAnswerUtil.AnswerWithArguments
41 Method implementation = getClass().getMethod("answer", method.getParameterTypes());
43 throw new RuntimeException("Found answer method does not have expected return "
51 throw new RuntimeException("Error invoking answer method", e);
56 throw new RuntimeException("Could not find answer method with the expected args
    [all...]

Completed in 194 milliseconds

1 2 3 4 5 6 7 8 91011