forum

Home / DeveloperSection / Forums / How to test a class that has private methods, fields or inner classes

How to test a class that has private methods, fields or inner classes

Anonymous User225106-May-2015
How do I use JUnit to test a class that has internal private methods, fields or nested classes? It seems bad to change the access modifier for a method just to be able to run a test.

Updated on 06-May-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By