elizarov
12/11/2016, 12:39 PMbar
defined as protected
in Java was its testability, then in Kotlin you can define it as internal
. There's no Kotlin analogue for Java's protected
(which is accessible in the same package and in subclasses). You can also define internal
helper/factory function in your code and then use them in your tests.