i’m sure this is my fault as i’m really new to mocking.
I am using Railo 3.3.1.009 on Mac. I have the latest dev version of ColdBox 3.5beta checkout from github.
I created a simple generalTest.cfc with a single function called index as seen in screen1.png attachment.
however when I execute generalTest.cfc I get the following error:
No matching Method/Function for Number.getSetting(string) found
what am I doing wrong?
Jeremy R. DeYoung
Phone:615.261.8201
RantsFromAMadMan.com
lmajano
2
Your problem is you are trying to do an integration test from a handler unit test.
component extends=“coldbox.system.testing.BaseHandlerTest”
needs to be
component extends=“coldbox.system.testing.BaseTestCase”
Luis
Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
Social: twitter.com/lmajano facebook.com/lmajano