If we only need to mock several methods of a class leaving the rest free to respond to ... @Spy. @InjectMocks. private MyClass myClass;.
確定! 回上一頁