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

1 2 3 4 5 6 7 8 91011>>

  /external/valgrind/main/memcheck/tests/
varinfo4.stdout.exp 0 answer is 0
xml1.stdout.exp 1 hello from frame3(). The answer is not 42.
  /external/valgrind/main/none/tests/
floored.stdout.exp 1 the answer is 3
  /external/mockito/src/org/mockito/internal/stubbing/answers/
AnswersValidator.java 9 import org.mockito.stubbing.Answer;
15 public void validate(Answer<?> answer, Invocation invocation) {
17 if (answer instanceof ThrowsException) {
18 validateException((ThrowsException) answer, methodInfo);
21 if (answer instanceof Returns) {
22 validateReturnValue((Returns) answer, methodInfo);
25 if (answer instanceof DoesNothing) {
26 validateDoNothing((DoesNothing) answer, methodInfo);
29 if (answer instanceof CallsRealMethods) {
    [all...]
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
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);
  /external/mockito/src/org/mockito/internal/stubbing/
ConsecutiveStubbing.java 7 import org.mockito.stubbing.Answer;
18 public OngoingStubbing<T> thenAnswer(Answer<?> answer) {
19 invocationContainerImpl.addConsecutiveAnswer(answer);
23 public OngoingStubbing<T> then(Answer<?> answer) {
24 return thenAnswer(answer);
27 public DeprecatedOngoingStubbing<T> toAnswer(Answer<?> answer) {
28 invocationContainerImpl.addConsecutiveAnswer(answer);
    [all...]
OngoingStubbingImpl.java 9 import org.mockito.stubbing.Answer;
23 public OngoingStubbing<T> thenAnswer(Answer<?> answer) {
28 invocationContainerImpl.addAnswer(answer);
32 public OngoingStubbing<T> then(Answer<?> answer) {
33 return thenAnswer(answer);
36 public DeprecatedOngoingStubbing<T> toAnswer(Answer<?> answer) {
37 invocationContainerImpl.addAnswer(answer);
    [all...]
StubbedInvocationMatcher.java 14 import org.mockito.stubbing.Answer;
17 public class StubbedInvocationMatcher extends InvocationMatcher implements Answer, Serializable {
20 private final Queue<Answer> answers = new ConcurrentLinkedQueue<Answer>();
23 public StubbedInvocationMatcher(InvocationMatcher invocation, Answer answer) {
25 this.answers.add(answer);
28 public Object answer(InvocationOnMock invocation) throws Throwable { method in class:StubbedInvocationMatcher
30 Answer a;
34 return a.answer(invocation);
    [all...]
InvocationContainerImpl.java 16 import org.mockito.stubbing.Answer;
29 private final List<Answer> answersForStubbing = new ArrayList<Answer>();
48 public void addAnswer(Answer answer) {
50 addAnswer(answer, false);
53 public void addConsecutiveAnswer(Answer answer) {
54 addAnswer(answer, true);
57 public void addAnswer(Answer answer, boolean isConsecutive)
    [all...]
  /external/e2fsprogs/resize/
test_extent.in 22 # Answer: 20
24 # Answer: 21
26 # Answer: 22
28 # Answer: 0 (not found)
30 # Answer: 45
32 # Answer: 0 (not found)
34 # Answer: 50
36 # Answer: 0 (not found)
38 # Answer: 0 (not found)
42 # Answer: 5
    [all...]
  /external/chromium_org/tools/gyp/test/win/lib-flags/
answer.cc 5 #include "answer.h"
7 int answer() { function
answer.h 5 int answer()
  /external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
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);
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);
  /ndk/sources/host-tools/make-3.81/tests/scripts/variables/
MAKECMDGOALS 22 $answer = "\n";
23 &compare_output($answer,&get_logfile(1));
31 $answer = "all\n";
32 &compare_output($answer,&get_logfile(1));
41 $answer = "foo bar baz yaz\nfoo bar baz yaz\nfoo bar baz yaz\nfoo bar baz yaz\n";
42 &compare_output($answer,&get_logfile(1));
MAKELEVEL 25 # SET ANSWER
27 $answer = "MAKELEVEL is 0\necho \$MAKELEVEL\n1\n";
31 &compare_output($answer,&get_logfile(1));
  /ndk/tests/build/multi-module-path/jni/
test.c 6 printf("The answer is %d\n", bar());
  /ndk/sources/host-tools/make-3.81/tests/scripts/functions/
warning 37 $answer = "$makefile:2: warning is yes\nSome stuff\n";
38 &compare_output($answer,&get_logfile(1));
43 $answer = "$makefile:6: warning is no\nSome stuff\n";
44 &compare_output($answer,&get_logfile(1));
49 $answer = "Some stuff\n$makefile:10: warning is maybe\nhi\n";
50 &compare_output($answer,&get_logfile(1));
55 $answer = "Some stuff\n$makefile:14: warning is definitely\nhi\nthere\n";
56 &compare_output($answer,&get_logfile(1));
error 39 $answer = "$makefile:4: *** error is yes. Stop.\n";
40 &compare_output($answer,&get_logfile(1));
45 $answer = "$makefile:8: *** error is no. Stop.\n";
46 &compare_output($answer,&get_logfile(1));
51 $answer = "Some stuff\n$makefile:12: *** error is maybe. Stop.\n";
52 &compare_output($answer,&get_logfile(1));
57 $answer = "Some stuff\n$makefile:16: *** error is definitely. Stop.\n";
58 &compare_output($answer,&get_logfile(1));
63 $answer = "$makefile:22: *** Error found!. Stop.\n";
64 &compare_output($answer,&get_logfile(1))
    [all...]
  /ndk/sources/host-tools/make-3.81/tests/scripts/options/
dash-n 24 $answer = "echo >> intermediate\necho >> final\n";
25 &compare_output($answer, &get_logfile(1));
30 $answer = "echo >> intermediate\necho >> final\n";
31 &compare_output($answer, &get_logfile(1));
59 $answer = "$make_name: `a' is up to date.\n";
60 &compare_output($answer, &get_logfile(1));
65 $answer = "$make_name: `a' is up to date.\n";
66 &compare_output($answer, &get_logfile(1));
  /external/chromium_org/sandbox/win/src/
handle_interception.cc 28 CrossCallReturn answer = {0}; local
31 desired_access, options, &answer);
35 if (answer.win32_result) {
36 ::SetLastError(answer.nt_status);
40 *target_handle = answer.handle;
  /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
  /ndk/sources/host-tools/make-3.81/tests/scripts/features/
quoting 25 # Create the answer to what should be produced by this Makefile
26 $answer = 'DEFINES = -DDEFAULT_TFM_PATH=\".:NICEFONT\"' . "\n";
30 &compare_output($answer,&get_logfile(1));
varnesting 23 # Create the answer to what should be produced by this Makefile
24 $answer = "Hello\n";
26 &compare_output($answer,&get_logfile(1));

Completed in 312 milliseconds

1 2 3 4 5 6 7 8 91011>>