Spock
-
Core Java
Mastering Mocking in Spock: Clean and Maintainable Tests
When it comes to testing in Java, Spock is a powerful and expressive framework that combines simplicity with an intuitive…
Read More » -
Core Java
JUnit 5 vs. TestNG vs. Spock: Mastering Java Testing
Unit testing is an essential practice in software development, ensuring that individual components of your code work as expected. With…
Read More » -
Core Java
Make Tests More Readable With Java Spock
Testing is a vital part of modern software development. As we scale our test cases, duplicating code across tests becomes…
Read More » -
Enterprise Java
Inject a Mock as a Spring Bean in a Spock Spring Test
Spock is a powerful testing framework for Java and Groovy applications, especially for writing unit and integration tests. It integrates…
Read More » -
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 »