Open
Description
Hey,
i hava a method inputTxt(ParamType param) in Father class ,and i invoke inputTxt in Child class, i want to test Child class and i want to mock inputTxt method. How can i do ,i have tried many plan but not get expected value.
like :
Method inputEnTxt = PowerMockito.method(Father.class, "inputTxt", ParamaType.class);
PowerMockito.replace(inputTxt).with(new InvocationHandler() {
@OverRide
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
return true;
}
});
it's still to call real method inputTxt.
Metadata
Metadata
Assignees
Labels
No labels