Typically you would test the filters in the system tests. For example
"systests/rs-security" holds the tests for security filters for JAX-RS
endpoints:

https://github.com/apache/cxf/tree/7d3cf5784f116f8882badde4f5cb4cb3fd5b03b2/systests/rs-security

For example, the JWT filters are tested here:

https://github.com/apache/cxf/tree/7d3cf5784f116f8882badde4f5cb4cb3fd5b03b2/systests/rs-security/src/test/java/org/apache/cxf/systest/jaxrs/security/jose/jwt

With spring configuration here:

https://github.com/apache/cxf/tree/7d3cf5784f116f8882badde4f5cb4cb3fd5b03b2/systests/rs-security/src/test/resources/org/apache/cxf/systest/jaxrs/security/jose/jwt

Colm.

On Wed, Aug 15, 2018 at 9:34 AM, Fredrik Espedal <[email protected]>
wrote:

> Hello,
>
>
>
> I am currently working on this issue, implementing http-signature:
> https://issues.apache.org/jira/browse/CXF-7753
>
> I have created a JAX-RS filter, and I’m wondering, what is the best way to
> test a filter to make sure it’s working properly? I have searched through
> the CXF repository for examples, but haven’t been able to
>
> locate a unit test or other tests that uses filters. Should I just make a
> separate project and test the filter that way?
>
>
>
> Best regards
>
> *Fredrik Espedal*
>
> Systemutvikler, 2L33 Security Systems
>
> [email protected]
>
> *M *+47 476 64 717
>
> [image: cid:[email protected]]
>
>
>
> Sensitivity: Internal
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to