speaking of enums… I’m trying to create integratio...
# android
j
speaking of enums… I’m trying to create integration test on Android using Spock and there is strange problem with properties. I have enum in Kotlin
Copy code
enum class Choice {
    NONE, LEFT, RIGHT
}
and when I try to access that in test using just
Choice choice = Choice.NONE
it throws
groovy.lang.MissingPropertyException: No such property: NONE for class: com.polarize.data.model.Choice
Same error with accessing
objects
using
ClassName.INSTANCE
What is more funny, same code in unit tests (also Spock and Groovy!) works, so… what the hell is this? 😄