What is the access modifier for test helper methods?

In Java, helper methods are often tagged protectedinstead private, so unit tests in one package can test helper methods. (In particular, I use JUnit.)

This does not work in Kotlin. Which access modifier is recommended?

+4
source share
1 answer

internal (or without modifier) ​​works well here

+7
source

All Articles