jukito

Missing method call for verify(mock), but there is one?

删除回忆录丶 提交于 2019-12-12 15:28:17
问题 Introduction I'm attempting to make a test which verifies (using Mockito v1.9.5's verify ) that a method with signature deinit() in an interface Bar is called after execution of a pass-through Foo.deinit() , and I'm hitting an error I really don't understand. Here's the FooTest.java which I'm attempting to run: @RunWith(JukitoRunner.class) public class FooTest { @Inject private Foo foo; @Inject private Bar bar; public static class TestModule extends JukitoModule { @Override protected void