Kotlin allows you to put method implementation in an interface. The same mechanism can be found in Java interfaces as default methods (and also Groovy or Scala traits). Read more
Tag: Spock
Testing Kotlin with Spock Part 2 – Enum with instance method
Testing Kotlin with Spock Part 2 – Enum instance method
The enum class with instance method in Kotlin is quite similar to its Java version, but they are look a bit different Read more
Testing Kotlin with Spock Part 1 – Object
The object
keyword in Kotlin creates singleton in a very convenient way. It can be used for example as a state of an operation. Spock Framework is one of the most expressive Read more
Groovy, Callable and ExecutorService
Suppose you want submit job to ExecutorService.
The Baroque version
You could create a class that implements Callable:
class MyJob implements Callable<Integer>{Read more
Grails with Spock unit test + IntelliJ IDEA = No thread-bound request found
java.lang.IllegalStateException: No thread-bound
Read more Spock basics
Spock, Java and Maven
How to keep session in HttpBuilder with cookies
In my real-world scenario I have a REST service for AJAX purposes. It renders data series for graphs. I want to test it with groovy’s excellent HttpBuilder. There Read more
How to keep session in HttpBuilder with cookies
In my real-world scenario I have a REST service for AJAX purposes. It renders data series for graphs. I want to test it with groovy’s excellent HttpBuilder. There Read more