| Article: |
Subverting Java Access Protection for Unit Testing | |
| Subject: | Alternatives to reflection | |
| Date: | 2003-11-14 01:56:04 | |
| From: | anonymous2 | |
|
I have variously used two other approaches to get around the problem of testing private fields/methods:
|
||
Showing messages 1 through 1 of 1.
-
Alternatives to reflection
2003-11-14 06:15:01 anonymous2 [View]
This was a great article. I really hated having to set private methods as package methods just to be able to run the Junit test. I gave it a try and it works great. Many thanks.


