-
Core Java👁 Image
Check Logs In A Spock Test Example
Logging is a crucial part of application development and testing. It helps track the flow of execution and debug issues…
Read More » -
Core Java👁 Image
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👁 Image
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👁 Image
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👁 spring-interview-questions-answers
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👁 Image
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👁 Image
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👁 Image
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👁 Image
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 »
