I have a couple Java classes which have blackbox test cases that just exercise the public API of the class. To write some whitebox test cases I needed to write some getters that are not part of the public API, but need to be visible to the test class.
How can I handle these functions?
You can make getters package default and place your test class in the same package.