Let's say I have a non-final concrete class with a final method like the one below.
public class ABC {
public final String myMethod(){
return "test test";
}
}
is it possible to mock myMethod()
to return something else when it is called in junit
using Powermockito
? Thank you
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…