Best way to test handler with mocking some of property service.

Hi All,
Doing some handler testing but really do not want to make database interaction since I have already tested services in unit testing. In handler just want to mock some of properties which bind with services but somehow I doesn’t work with execute statement. Seems like execute statement creating handler object.

Can anyone give me sample testcase for handler doing some database operation?

Thanks,
Pritesh

Pritish, I replied to your cross-posted question on Twitter. You can read my reply and then hit us back here with more questions.

https://twitter.com/thecfguy/status/722006010383114240

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Thanks Brad… Seems like I am trying to do it in wrong way.