Testing Kotlin With Spock, Part 2 – Enum Instance Method

The enum class with an instance method in Kotlin is quite similar to its Java version, but they look a bit different in the bytecode. Let’s see the difference by writing some tests using Spock.
What Do We Want to Test?
Let’s see the code that we want to test:

Link: https://dzone.com/articles/testing-kotlin-with-spock-part-2-enum-instance-met?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev