I'm trying to play with rest assured filters, and I'm wondering if there is a
possibility to unregister previously registered filters ? My use case : I
created a JUnit rule allowing to keep sessionId from REST requests inside a
unit test execution. Problem is : I don't want to enable this behaviour on
every of my test cases (in some tests, I want to open several differentiated
sessions, thus, I don't add the JUnit rule on these tests), so, I need to
"clean the campfire as it was before my rule execution". To be able to clean
the campfire, I should remove my added filter after each test execution. But I
don't see any API allowing to do this (RestAssured.filters() returns an
UnmodifiableList). Shouldn't we add a RestAssured.removeFilters(List<Filter>
filters) method to do this ?
I.e. we probably need something like RestAssured.removeFiltersOfType(..),
replaceFiltersWith(..) or something like that.
Original issue reported on code.google.com by johan.ha...@gmail.com on 22 May 2012 at 6:17
Original issue reported on code.google.com by
johan.ha...@gmail.com
on 22 May 2012 at 6:17