HomeSort by relevance Sort by last modified time
    Searched defs:spy (Results 1 - 15 of 15) sorted by null

  /external/guava/guava-tests/test/com/google/common/io/
AppendableWriterTest.java 88 SpyAppendable spy = new SpyAppendable(); local
89 Writer writer = new AppendableWriter(spy);
92 assertFalse(spy.flushed);
93 assertFalse(spy.closed);
96 assertTrue(spy.flushed);
97 assertFalse(spy.closed);
100 assertTrue(spy.flushed);
101 assertTrue(spy.closed);
  /external/mockito/src/org/mockito/
Mockito.java 51 * <a href="#21">21. New annotations: <code>&#064;Captor</code>, <code>&#064;Spy</code>, <code>&#064;InjectMocks</code> (Since 1.8.3) </a><br/>
464 * <li>stub methods on spy objects (see below)</li>
486 * <h3 id="13">13. <a class="meaningful_link" href="#spy">Spying on real objects</a></h3>
488 * You can create spies of real objects. When you use the spy then the <b>real</b> methods are called
505 * List spy = spy(list);
508 * when(spy.size()).thenReturn(100);
510 * //using the spy calls <b>*real*</b> methods
511 * spy.add("one");
512 * spy.add("two");
1321 public static <T> T spy(T object) { method in class:Mockito
    [all...]
  /libcore/jsr166-tests/src/test/java/jsr166/
Collection8Test.java 54 Consumer<Object> spy = (o) -> { found.add(o); }; local
55 c.stream().forEach(spy);
59 c.stream().forEach(spy);
64 c.stream().forEach(spy);
71 c.stream().forEach(spy);
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
JdkFutureAdaptersTest.java 59 ExecutorSpy spy = new ExecutorSpy(directExecutor()); local
61 listenInPoolThread(abstractFuture, spy);
66 assertFalse(spy.wasExecuted);
75 // 'spy' should have been ignored since 'abstractFuture' was done before
77 assertFalse(spy.wasExecuted);
87 ExecutorSpy spy = new ExecutorSpy(executorService); local
89 listenInPoolThread(abstractFuture, spy);
94 assertFalse(spy.wasExecuted);
103 assertTrue(spy.wasExecuted);
  /external/opencv3/modules/cudaimgproc/src/
mssegmentation.cpp 259 Vec2s* spy = spmap.ptr<Vec2s>(y); local
264 sp1 = spy[x];
271 sp2[0] = spy[x + 1];
284 sp1 = spy[x + 1];
  /external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
DfpMath.java 347 Dfp[] spy = new Dfp[2]; local
348 spy[0] = pow(a.getTwo(), p2); // use spy[0] temporarily as a divisor
349 spx[0] = spx[0].divide(spy[0]);
350 spx[1] = spx[1].divide(spy[0]);
352 spy[0] = a.newInstance("1.33333"); // Use spy[0] for comparison
353 while (spx[0].add(spx[1]).greaterThan(spy[0])) {
364 spy = splitMult(a.getField().getLn2Split(), spx);
366 spz[0] = spz[0].add(spy[0])
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
ListViewTest.java 67 import static org.mockito.Mockito.spy;
962 view.setBackground(spy(new ColorDrawable(Color.BLACK))); method
    [all...]
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.jdt.debug_3.6.1.v20100715_r361/
jdimodel.jar 
  /external/v8/test/cctest/
test-api.cc 9230 Local<Value> spy = local
    [all...]
  /prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.2.5/
mockito-core-2.2.5.jar 
  /prebuilts/eclipse/maven/apache-maven-3.2.1/lib/
maven-core-3.2.1.jar 
  /external/dexmaker/lib/
mockito-core-1.9.1-SNAPSHOT.jar 
  /external/robolectric/v1/lib/test/
mockito-core-1.8.5.jar 
  /prebuilts/tools/common/m2/repository/org/mockito/mockito-all/1.9.5/
mockito-all-1.9.5.jar 
  /prebuilts/tools/common/m2/repository/org/mockito/mockito-core/1.9.5/
mockito-core-1.9.5.jar 

Completed in 2094 milliseconds