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.
PowerMockito 中有 verifyStatic 和 verifyPrive 方法,但没有 verifyFinal。是否可以使用 PowerMockito 验证最终方法调用?
最好的问候,尤金。
好的,似乎将正在验证的类添加到 PrepareForTest 中,然后使用普通的 Mockito.verify 就足够了。