My experience with Java, Groovy, Grails, Python and more.
  • Home

spock

A collection of 4 posts

junit

REST API Integration Testing with Wiremock

Lets say you have a service (customer-service) that calls another service (account-service) over HTTP, gets the response from account-service, does some munging with the data and returns it back to the UI. Now

  • Ravi Hasija
    Ravi Hasija
2 min read
groovy

Retry with Spring - I

Spring batch provides an excellent paradigm to retry an operation in case the operation might succeed eventually. It offers couple retry strategies: a. Retry a certain number of times. (Covered below) b. Retry

  • Ravi Hasija
    Ravi Hasija
3 min read
groovy

Throw dynamic exceptions in Spock tests from where block

It's pretty straightforward due to Groovy awesomeness! Without any further ado: import spock.lang.Specification /** * Created by ravi on 11/14/14. */ class SpockDynamicExceptionTest extends Specification { def "test 1234"() { given: def

  • Ravi Hasija
    Ravi Hasija
1 min read
groovy

NFJS Experience - What I gained from it (Part I)

I had the opportunity to be at NFJS from Jul 22-24 sponsored by Griffin Solutions Group. It was my first experience and an experience that is difficult to describe in words. There were

  • Ravi Hasija
    Ravi Hasija
2 min read
My experience with Java, Groovy, Grails, Python and more. © 2025
Latest Posts Ghost