How Do You Test A Protected Method


  • 20 Jan, 2012

    When a method is declared as "protected", it can only be accessed within the same package where the class is defined.In order to test a "protected" method of a target class, you need to define your test class in the same package as the target class.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.