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 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, Read more
Testing Kotlin with Spock Part 1 – Object
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>{ @OverrideRead more
Grails with Spock unit test + IntelliJ IDEA = No thread-bound request found
During my work with Grails project using Spock test in IntelliJ IDEA I’ve encountered this error:
java.lang.IllegalStateException: No thread-bound request found: Are you referring toRead more
Spock basics
Spock, Java and Maven
Few months ago I’ve came across Groovy – powerful language for JVM platform which combines the power of Java with abilities typical for scripting languages
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 Read more
Test Driven Traps, part 1
Have you ever been in a situation, where a simple change of code, broke a few hundred tests? Have you ever had the idea that
How to automate tests with Groovy 2.0, Spock and Gradle
This is the launch of the 1st blog in my life, so cheers and have a nice reading!
y u no test?
Couple of years Read more