mock
1 posts
Ratpack: mocking Session object in GroovyRequestFixture test
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.