Testing of Access Property Restricted Member Functions in Unit Testing

Kang Mu-ning · Microelectronics & Computer · 2005

This paper discusses the necessity of testing the member functions whose access property is restricted in the unit testing of object-oriented programming language. Furthermore, we discuss the implementation method of breaking the restriction of access property to execute the test based on reflection in Java. This method resolves the problem that in common we can't test the member functions with private access property effectively. Using this method, we can improve the developing speed and software quality greatly.

Read the paper · More papers on PaperTik