In a class I import some packages, but I want to mock some of the methods in the packages. For example:
import com.MyObject;
...
MyObject.myMethod();
How do I mock MyObject's myMethod?
In a class I import some packages, but I want to mock some of the methods in the packages. For example:
import com.MyObject;
...
MyObject.myMethod();
How do I mock MyObject's myMethod?