ColdBox Framework Forums Notification: Post to Unit testing coldboxproxy event handlers that return a value

Title: RE: Unit testing coldboxproxy event handlers that return a value
Thread: Unit testing coldboxproxy event handlers that return a value
Forum: Need Help?
Conference: ColdBox
User: lmajano Hi,

I believe I haven't documented this, sorry. I am in document revision
mode right now. So this will be updated.

The framework creates a special
variable in the event context for you that you can assert to. The name of the
variable is:

cbox_handler_results

So you can assert by doing
event.getValue('cbox_handler_results')

If the value doesn't exist, then it
means, the handler did not return anything.
http://forums.coldboxframework.com/index.cfm?event=ehMessages.dspMessages&threadid=0FA753CB-FF6E-E829-9A9D875C60D13600