Results 1 to 2 of 2

Thread: Testing with interceptors?

  1. #1
    Join Date
    Mar 2005
    Posts
    144

    Default Testing with interceptors?

    Is there a way to unit test Spring services using interceptors? Currently I have implemented an interceptor to do some setup/initialization work that is common for each web service call. When I unit test, this logic/behavior is unavailable. The example apps show how to test the endpoint by itself. Is there a way to unit test both interceptors and endpoints together?

  2. #2
    Join Date
    Mar 2005
    Posts
    144

    Default Perhaps this is not the way to do it...

    I have not received any replies which makes me think that others aren't putting common setup/initialization in interceptors. Does Spring-WS offer any hooks to implement a common "preService" method where I could put common setup/initialization logic?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •