Head-First-Java
Head-First-Java copied to clipboard
TestClass for Chapter 6's code
How can I write test-code for DotComBust class without changing it, if I have no access to variables and the class has no setters or getters?
I think you can use java reflection api to retrieve the fields