When I run the wizard in Eclipse, not all my methods appear in the list to add to the new test case.
Is this to say I can’t test them? Or that if I somehow can, I shouldn’t test them?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Eclipse wizards won’t show private methods – you can’t call them directly hence you can’t test them directly, which might be what you are seeing.
Instead of thinking about which methods you are testing, you might however want to start thinking of testing in terms of testing the behavior of the class.