Kotlin to support package protected visibility

How am I supposed to do unit / whitebox testing properly?

Via public methods. Even unit tests should not depend on the internal decomposition. You should be able to refactor private methods without the need to change the unit tests.

2 Likes