Article: ![]() |
Subverting Java Access Protection for Unit Testing | |
Subject: | Use getters | |
Date: | 2003-11-20 01:01:42 | |
From: | anonymous2 | |
A good read. But I would rather prefer to respect the 'JavaBean'ness of my object and call public accessors to test the run-time value of a private field. |