||Subverting Java Access Protection for Unit Testing|
|Subject:||Public Introductions for Private Methods|
Another option is to apply privileged public introductions that provide pass-through delegation to non-public methods and fields. A simple combination of a doclet and an aspect compiler can provide this level of access for all of your non-public members at once. The doclet generates the aspect source files for application by the aspect compiler prior to the unit test compile.
Showing messages 1 through 3 of 3.
Public Introductions for Private Methods
2010-01-04 23:52:18 sw1527 [View]