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? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -