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

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

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -