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.
我需要一些帮助:
例子:
void method1{ MyObject obj1=new MyObject(); obj1.method1(); }
我想在我的测试中模拟 obj1.method1() 但我无法从外部访问 obj1。有没有办法用 powermock 和 easymock 做到这一点。现在我知道它可以与 powermock 和 mockito 一起使用。