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.java73 WithSpy withSpy = new WithSpy(); in should_allow_spying_on_interfaces() local
74 MockitoAnnotations.initMocks(withSpy); in should_allow_spying_on_interfaces()
75 when(withSpy.list.size()).thenReturn(3); in should_allow_spying_on_interfaces()
76 assertEquals(3, withSpy.list.size()); in should_allow_spying_on_interfaces()
85 WithSpy withSpy = new WithSpy(); in should_allow_spying_on_interfaces_when_instance_is_concrete() local
88 MockitoAnnotations.initMocks(withSpy); in should_allow_spying_on_interfaces_when_instance_is_concrete()
91 verify(withSpy.list, never()).clear(); in should_allow_spying_on_interfaces_when_instance_is_concrete()
138 SpyAbstractClass withSpy = new SpyAbstractClass(); in should_spy_abstract_class() local
139 MockitoAnnotations.initMocks(withSpy); in should_spy_abstract_class()
140 assertEquals(Arrays.asList("a"), withSpy.asSingletonList("a")); in should_spy_abstract_class()