In this short blog post I would like to explain how to avoid popular mistake when you write your first JUnit 5 test case in Groovy.
Ratpack allows you unit test handlers using
GroovyRequestFixture class. The good thing about this approach is that it does not require running the whole application and you can quickly test if the handler does what you expect. However, if you retrieve objects from Raptack’s registry you will run into a problem - registry in this case is empty.