Spock
-
Enterprise Java
Migrating Spock 1.3 tests to Spock 2.0
Get know what you can expect from Spock 2.0 M1 (based on JUnit 5), how to migrate to it in…
Read More » -
Enterprise Java
Maven Project Setup for Mixing Spock 1.x and JUnit 5 Tests
I create a sample Groovy project for Maven, that mixes Spock tests and JUnit 5 tests in one project. In…
Read More » -
Kotlin
Testing Kotlin with Spock Part 3 – Interface default method
Kotlin allows you to put method implementation in an interface. The same mechanism can be found in Java interfaces as…
Read More » -
Enterprise Java
Simplify integration testing of legacy application with Spock 1.2
Learn how leverage Spock 1.2 to slice a Spring context of a legacy application writing integration tests. Have you ever…
Read More » -
Enterprise Java
Spock 1.2 – hassle-free Spring beans mocking in integration tests
Discover how to automatically inject Spock’s mocks and spies into the Spring context using Spock 1.2. Stubs/mocks/spies in Spock (and…
Read More » -
Kotlin
Testing Kotlin with Spock Part 2 – Enum with instance method
The enum class with instance method in Kotlin is quite similar to its Java version, but they are look a…
Read More » -
Kotlin
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…
Read More » -
Enterprise Java
Testing your code with Spock
Spock is a testing and specification framework for Java and Groovy applications. Spock is: Extremely expressive Facilitates the Given /…
Read More » -
Enterprise Java
Grails 3.3 Integration Testing with Spock Mocks
It is easy to use the Spock Framework, shipped with Grails, to mock or stub a collaborator (such as a…
Read More »
- 1
- 2