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?


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



ColdBox Platform Evangelist
Ortus Solutions, Corp

ColdBox Platform:

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