HomeSort by relevance Sort by last modified time
    Searched refs:Spy (Results 1 - 7 of 7) sorted by null

  /external/mockito/src/org/mockito/
Spy.java 13 * Allows shorthand wrapping of field instances in an spy object.
21 * @Spy Foo spyOnFoo = new Foo("argument");
23 * @Spy Bar spyOnBar;
35 * Foo spyOnFoo = Mockito.spy(new Foo("argument"));
36 * Bar spyOnFoo = Mockito.spy(new Bar());
40 * <strong>The field annotated with &#064;Spy can be initialized by Mockito if a zero argument constructor
44 * <strong>The field annotated with &#064;Spy can be initialized explicitly at declaration point.
64 * List spy = spy(list);
66 * //Impossible: real method is called so spy.get(0) throws IndexOutOfBoundsException (the list is yet empty)
    [all...]
  /external/mockito/src/org/mockito/internal/configuration/injection/
SpyOnInjectedFieldsHandler.java 9 import org.mockito.Spy;
21 * Handler for field annotated with &#64;InjectMocks and &#64;Spy.
35 if(!fieldReader.isNull() && field.isAnnotationPresent(Spy.class)) {
  /external/mockito/src/org/mockito/internal/configuration/
SpyAnnotationEngine.java 21 * Process fields annotated with &#64;Spy.
24 * Will try transform the field in a spy as with <code>Mockito.spy()</code>.
49 if (field.isAnnotationPresent(Spy.class) && !field.isAnnotationPresent(InjectMocks.class)) {
50 assertNoIncompatibleAnnotations(Spy.class, field, Mock.class, org.mockito.MockitoAnnotations.Mock.class, Captor.class);
  /external/mockito/src/org/mockito/internal/configuration/injection/scanner/
MockScanner.java 9 import org.mockito.Spy;
80 return null != field.getAnnotation(Spy.class)
  /external/robolectric/lib/test/
mockito-core-1.8.5.jar 
  /external/dexmaker/lib/
mockito-core-1.9.1-SNAPSHOT.jar 
  /external/chromium_org/third_party/usb_ids/
usb.ids     [all...]

Completed in 51 milliseconds