If you’ve started writing your own JUnit test cases for your problems in ClassCube you may have come across the following message on a dialog box.
Why test private instance variables? Need to test private instance variables in Java? Well, if you ask how to do that on a discussion forum you’ll probably get the response that you shouldn’t test anything private. Instead, call the public method that’s calling using the instance variable and make sure it works the way it […]