ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Subverting Java Access Protection for Unit Testing
Subject:   Good reading about Reflection API but not a good solution for Unit testing
Date:   2003-11-26 06:09:38
From:   anonymous2
This post can be considered as good reading about Reflection API. But in really the intent of Unit Testing should be focused to the testing on the actual code written by the developer.
As test cases are written by the developer who has knowledge of the functionality of the class (by reading the JavaDoc comments) so Test cases should limit themselves to the methods available in the class.


e.g. If some class is Immutable we should not try to test if it pass the test for mutability.


naveed@naveedazhar.com


1 to 1 of 1
1 to 1 of 1