Make Java Tests Groovy With Hamcrest
A tutorial on testing Java code with Groovy.
![](https://cdn.statically.io/img/raw.githubusercontent.com/oktadeveloper/okta-blog/master/_source/_assets/img/blog/featured/okta-java-short-skew.jpg)
My favorite way to test Java code is with Groovy. Specifically, writing tests in Groovy with Hamcrest. In this post, I’ll walk through how to test a simple Spring Boot application with these tools.