Here is a little insight of what happens at ColdBox Training:
Here is a little insight of what happens at ColdBox Training:
Just a reminder that the early bird for the CFUnited pre-conference ColdBox training ends this Friday, so if you want to get your hands at training the cheaper way, this week is the way to go! There are also several discount codes floating around (shhh: superweek).
This is a reminder that we will be holding a 2 day ColdBox intensive training before CFUnitedJuly 26-27th. If you have not attended a ColdBox training, you should, we have fun, tears, laughs and food! Hope to see you there this summer!
Also remember some cool promo codes: cfug (for cfug members) and superweek (ends next week)Just a mention that on On Saturday May 8 2010, the Central Florida Web Developers User Group came together for a seven-hour presentation covering ColdFusion, ColdFusion builder and the ColdBox framework. This was a free event coordinated by Aaron Greenlee and unfortuna...
Just a reminder that the ColdBox London, UK training is occurring this May 26, that is only 16 days away. So hurry up and get trained and even get a hefty discount by using this link: http://coldbox-uk.eventbrite.com/?discount=vivaUK
Please note that you can either purchase the 2 day package or the 3 day package.
...We have just opened the registration page for our new ColdBox 2 day training before the CFUnited Conference. The dates are from July 26-27, 2010 and you can click here to view the event page. I am super excited to be holding my first 2 day training in the DC metro area and hope to see you there to get some nice advanced training and yes, it will be 3.0.0 time! Wh...
I have been getting some inquiries of why not also allowing the purchase of the 2 days of CBOX-101 at our training right after Scotch on the Rocks. So we listened! You can now either purchase the 3 day training which includes the 2 days of CBOX-101 plus a one day coding bootcamp or you can just purchase the 2 days of CBOX-101 training.
We are only about 4 weeks away, so reserve your sea...
MockBox can have many amazing uses. One well documented use is in assistance in creating complicated unit tests insuring you are only testing one small unit of work, it can be used for many other interesting use cases.
One of the ways we find MockBox useful during our development cycle at Computer Know How is to Mock objects we haven't had the time to complete yet, but we do know what we expect as response. This allows us to continue development without waiting for the piece of something we haven't done yet slow us down, but keep the method calls exactly as they will be in when the object is complete.
So, how do you use MockBox outside of the context of a unit test? Well, its easy.
Inside a ColdBox application.
//get an instance of mockbox to use for mocking things not 100% built yet inside a ColdBox app
mockBox = createObject("component","coldbox.system.testing.MockBox").init();
Outside a ColdBox application.
//get an instance of mockbox to use for mocking things not 100% built yet outside a ColdBox app.
mockBox = createObject("component","mockbox.system.testing.MockBox").init();
Now that MockBox is initialized, we can start mocking objects. Lets say we have a User Object that we haven't had time to build yet. Right now it looks really advanced with lots of cool properties and functions that we spent a ton of time on. Something like this.
cfcomponent hint="I am the User ORM cfc"
/cfcomponent