Join Slack
Powered by
<https://kotlinlang.slack.com/archives/general/p14...
# announcements
i
ilya.gorbunov
03/19/2016, 12:17 PM
https://kotlinlang.slack.com/archives/general/p1458389093001217
JUnit requires Rule annotation to be placed on a public field. And in kotlin backing field is private. To expose backing field you can annotate property with the
JvmField
annotation:
Copy code
@Rule @JvmField val testName = TestName()
Open in Slack
Previous
Next