How to make Kotlin `internal` objects accessible to tests?
问题 My project uses several Gradle source sets for its production code base instead of just main : domain dal rest test dbUnitTest This has proven very useful for limiting dependencies and enforcing separation of concern. It comes with one downside however: we cannot access classes or methods with visibility internal from within test classes. The reason for this is that the Kotlin compiler places every source set in its own "module": $ find . -name '*.kotlin_module' ./classes/kotlin/domain/META