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:   I don't agree...
Date:   2003-11-26 05:25:56
From:   anonymous2
Several points here:


- When you look at the test code, no one can deny it's a mess compared to regular tests.


- Unit tests should be considered as first class users of the code. Changing the code (changing methods to package access, extracting utility classes, etc) should therefore be considered to accomodate the tests.


So long,
Axel