You have to write it in Java. You can, in theory, ...
# announcements
j
You have to write it in Java. You can, in theory, run the Kotlin compiler inside your test to assert that it fails to compile when you try to pass null, but that's quite convoluted.