Women in Technology

Hear us Roar



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

Full Threads Newest First

Showing messages 1 through 1 of 1.

  • Good reading about Reflection API but not a good solution for Unit testing
    2007-03-07 14:41:04  drmpf [View]

    We need to write Unit test for our clone() methods. I cannot see a better alternative then this for checking all the class's internals to see that the clone() is correct.
    matthew