Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestClass for Chapter 6's code #4

Open
Portowine opened this issue Mar 19, 2017 · 1 comment
Open

TestClass for Chapter 6's code #4

Portowine opened this issue Mar 19, 2017 · 1 comment

Comments

@Portowine
Copy link

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?

@ojles
Copy link

ojles commented Sep 27, 2017

I think you can use java reflection api to retrieve the fields

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants