I want to write a unit test for my Kotlin code and use junit/hamcrest matchers, I want to use the is method, but it is a reserved word in Kotlin.
is
How can I
You can alias is (say to Is) when you import, using the as keyword.
Is
as
E.g:
import org.hamcrest.CoreMatchers.`is` as Is
See https://kotlinlang.org/docs/reference/packages.html