Mar 19
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
Read more...
Mar 9

I will be taking lots of ColdBox books to the UK for our UK training and for
scotch on the rocks. Not only that, we are releasing a promotion today for the first 2 students that
register for our UK training, they will get a free Definitive Guide To The ColdBox Platform. So for the first 2 students, you get a free book as well!
Mar 3
We have just opened the registration page for our new ColdBox 3 day training right after Scotch on the Rocks in London, UK. The dates are from May 26-27-28 and I will be the trainer. This is my first visit to SOTR so I am very excited to attend and also be able to train for the first time in the UK. The course we will cover is CBOX-101, which is an intense 2 day training on ColdBox and we are also adding an extra day we are calling ColdBox BootCamp. This third day will be used to review hands on exercises from the course and we will also create a cool ColdBox application. So come on over and start learning about the ColdBox Platform, seats are limited!
Feb 27
I am currently planing to do a european training tour at the end of May for both the UK and Switzerland. The dates for such trainings would be May 26-28 right after Scotch on the Rocks, 2 days of CBOX-101 and 1 day of hands on boot camp coding. Then moving to zurich and doing 3 more days from May 31st- June 2.
This is a huge ordeal for us to plan from all the way over here in California. However, we are very interested in doing this 2 city tour, so if you would be interested in attending, please leave your comments below. The proposed price for the training sessions are 1000 british pounds (1650 swiss francs).
We are in the planning phases, so please leave your comments below
Feb 9
Just a reminder that our Ontario, California ColdBox training is in 11 days and only a few seats are left. So book your training today to reserve your seat.
OVERVIEW
Core ColdBox is our 2-day flagship intensive training course that will get you started with ColdBox even if you have no previous OO experience. The course is constructed in such a manner that both gurus and novices can take advantage of our materials.
More Information and Requirements
SCHEDULE
February 20, Saturday - CBOX 101 - Day 1
February 21, Sunday - CBOX 101 - Day 2
* The night of the 20th we will have a group dinner (optional) and a open BOF.
Read more...