Re: Help with mocking a filter bean method call

2013-02-15 Thread whelmingbytes
Thanks for the response. I agree I shouldn't put mocks into our int tests, but the lovely code with this in it, I inherited. I will be going the route of using the spring based registry. Looks like exactly what I need and have had good luck with it so far. Thanks again! -- View this message in

Re: Help with mocking a filter bean method call

2013-02-13 Thread whelmingbytes
Thanks for the quick reply! This will work for this example, but I only created this example for simplicity sake. In my actual test, my bean is loaded up with spring component scan (most of the tests that use this are integration tests) and the test is initialized with overriding the createApplica

Help with mocking a filter bean method call

2013-02-13 Thread whelmingbytes
;); } }); But, I am not sure how to go about swapping out my filters bean method call with my mock. I have a gist here with a test if anyone is willing to take a look or point me to some examples of this: https://gist.github.com/whelmingbytes/446d0650b47ae082b626 Thanks! -Spencer -- View