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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -