java - Powermock replace superclass method -
i have following code:
public class classa { public object buid(){ object obj=new object(); //building object... return obj; } public class classb extends classa { public object build(){ object obj=super.build(); //some operations obj return obj; } }
i want test classb#build. in order need mock super.build() invocation. possible powermock?
supress working fine, didn't manage replace method membermodifier.replace.
Comments
Post a Comment