Hi,

It's is a interesting test requirement.
As you know CXF using the LocalTransport to avoid using the network during the unit test.

If you just want to test the interceptor in unit test, it could be more straight if you just mock a message with the Stream that you want to feed in.

On Tue Nov  1 06:14:25 2011, RayArturo wrote:
Hello All,

I have several ValidationEventHandlers as well as custom interceptors for
fixing or recovering from bad responses on the client side.  Therefore my
automatic tests need to exercise the entire CXF/JAXB stack.  What I want to
do is replace the network layer with a mock object that returns hardcoded
SOAP.

I've looked at Conduit, ConduitSelector, Exchanger, and the Stax I/O
creation factory.  What is recommended for replacing the network with a mock
object for testing?

Thanks in advance, Ray

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Recommendation-for-replacing-network-with-mock-tp4953736p4953736.html
Sent from the cxf-user mailing list archive at Nabble.com.



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to