I'm trying to access an internal class in main fro...
# kotest
l
I'm trying to access an internal class in main from a test class but it's not visible. Is this the correct behaviour? I'm just wondering because some SO threads claim it's possible to access internal class from test class. It's an android library project if it matters
s
if it's the same module should be visible in test if it's in main
l
@sam This seems to be an android specific limitation. I have tested 3 projects, 1 kotlin only and 2 android and an internal class is only visible in test class in the kotlin only project
s
Oh ok
l
I shouldn't fight against this convention so I guess I have to use the
VisibleForTesting
annotation of Android
s
Yes makes sense