Changing static final fields in Java for JUnit Unit Tests
Reflection
allows you to tinker with Java in ways that are clearly against everything you've learnt from your Object Oriented Programming lessons.
Reflection is like being handed a master-key. I've used it to come up with solutions to problems that didn't have an easier or cleaner way in Java - cutting down cumbersome code writing.
Read full article from Changing static final fields in Java for JUnit Unit Tests
No comments:
Post a Comment