Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试测试一个使用自定义注释实现注释私有方法的类。有没有办法用 Mockito 测试这个?我应该如何使用 Mockito 注释注入方面实现?
公共类 XYZ { @retryOnException(异常=Exception.class) 私人无效doSomething() { }
谢谢