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# - SharpSVN - How to get the previous revision? -

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

url - Querystring manipulation of email Address in PHP -