| Sign In/My Account | View Cart |
| Article: |
Subverting Java Access Protection for Unit Testing | |
| Subject: | Public Introductions for Private Methods | |
| Date: | 2003-11-13 13:05:51 | |
| From: | anonymous2 | |
|
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.
thanks a lot