Searched refs:withSpy (Results 1 – 1 of 1) sorted by relevance
68 WithSpy withSpy = new WithSpy(); in should_allow_spying_on_interfaces() local69 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() local83 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() local134 MockitoAnnotations.initMocks(withSpy); in should_spy_abstract_class()135 assertEquals(Arrays.asList("a"), withSpy.asSingletonList("a")); in should_spy_abstract_class()