Menu

what about private methods instrumentation

2005-02-15
2013-05-09
  • Nobody/Anonymous

    Hi All,
    I would like to know how EMMA instruments private methods which are not accessible from out side.please let me know.Isn't it a violation of OOPS concepts ( encapsulation ).

    regards
    sivajik

     
    • Vlad Roubtsov

      Vlad Roubtsov - 2005-02-15

      >I would like to know how EMMA instruments private methods which are not accessible from out side.

      What do you mean by "out side"? EMMA instruments bytecode either during classloading or by processing .class files. In both cases EMMA directly manipulates an array of bytes in .class format.

      >Isn't it a violation of OOPS concepts ( encapsulation ).

      What does OOP encapsulation have to do with code coverage?

      Vlad.

       

Log in to post a comment.