Don't use reflection to make non-public methods accessible in order to unit test them. You shouldn't test those methods individually. If you do so, you'll force yourself to maintain the contract of that method, making both code and tests hard to change and refactor in the future.


Β· Β· Mastodon Twitter Crossposter Β· 0 Β· 0 Β· 0
Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!