unit testing - How to write jUnit tests for private methods -


possible duplicate:
what's best way of unit testing private methods?

as private method's visibility not allow them seen outside of class, how can write tests make sure work expected?

suppose making them protected or public not option. additionally suppose test code must reside separately production code.

please advise , if possible, provide example

check links :


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -