I am wondering how I would unit test a wire tap? Do I just create the tap as
a mock and use the following cfg:

            public void configure() {

                from(inputUri)
                        .errorHandler(

deadLetterChannel(MOCK_OUTPUT_DESTINATION_URI)
                                        .maximumRedeliveries(2)
                                        .initialRedeliveryDelay(1)
                                        .loggingLevel(LoggingLevel.INFO)
                        )
                        .process(processor)
                        .to(*MOCK_TAP, *MOCK_OUTPUT_DESTINATION_URI);
            }
        });


-- 
---
Thank You…

Mick Knutson
BASE Logic, inc.
(415) 354-4215

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com

Reply via email to