Searched refs:withSpy (Results 1 – 1 of 1) sorted by relevance
73 WithSpy withSpy = new WithSpy(); in should_allow_spying_on_interfaces() local74 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() local88 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() local139 MockitoAnnotations.initMocks(withSpy); in should_spy_abstract_class()140 assertEquals(Arrays.asList("a"), withSpy.asSingletonList("a")); in should_spy_abstract_class()