groovy - Execute Grails Filters in Integration Tests -


I was through the integration test document for Grails and I saw this line:

< P> Grails

Source:

  1. Why is that so? If Grails applied the filter it would make my test life much easier. My project uses heavy filters and many of my controllers rely on my filter to do anything.

  2. I was thinking about it and it seems that any groovy can use black color Magic automatically performs a filter in an integration test Has already done this, or is it something that I have to write?

The environment used for integration testing is run-app Available during; Spring is active, plugins are loaded, a database is available, etc. There is not much server everything except server, no actual request, no servlet filters, and any Grails filters (which are wrappers for spring controller handler adapter s). When testing the Controller you can get a request and feedback for the Spring Servlet API counterfeit classrooms. But none of the actual web request lifecycle is active, it is just simulated.

You are right that it should be eligible with some custom code. When you do this, please consider making this a plugin so that we can all share :)


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -