Home
last modified time | relevance | path

Searched refs:withSpy (Results 1 – 1 of 1) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/annotation/
DSpyAnnotationTest.java68 WithSpy withSpy = new WithSpy(); in should_allow_spying_on_interfaces() local
69 MockitoAnnotations.initMocks(withSpy); in should_allow_spying_on_interfaces()
70 when(withSpy.list.size()).thenReturn(3); in should_allow_spying_on_interfaces()
71 assertEquals(3, withSpy.list.size()); in should_allow_spying_on_interfaces()
80 WithSpy withSpy = new WithSpy(); in should_allow_spying_on_interfaces_when_instance_is_concrete() local
83 MockitoAnnotations.initMocks(withSpy); in should_allow_spying_on_interfaces_when_instance_is_concrete()
86 verify(withSpy.list, never()).clear(); in should_allow_spying_on_interfaces_when_instance_is_concrete()
133 SpyAbstractClass withSpy = new SpyAbstractClass(); in should_spy_abstract_class() local
134 MockitoAnnotations.initMocks(withSpy); in should_spy_abstract_class()
135 assertEquals(Arrays.asList("a"), withSpy.asSingletonList("a")); in should_spy_abstract_class()