I was able to get this to work by using Jersey's ContainerRequestFilter rather than a servlet filter. The ContainerRequestFilter worked with ResourceTestRule's addProvider as desired.
On Monday, April 29, 2019 at 2:11:25 PM UTC-4, Alex Kahn wrote: > > Hi, > > I'm trying to test a pre-request filter in a resource test that uses > ResourceTestRule. In my application's bootstrap method, the filter is added > with `environment.servlets().addFilter(…)`. Is there a way to set up the > test rule so that my filter code is executed while handling a request? > > Thank you, > Alex > -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
