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 2
I was working more with Coldfusion 9 ORM and found another small caveat I thought I would share. When working with a relationship that is filtered, the implicit "has[property]", the has does not take into account the filter. The implicit get works as expected however. Consider the following persistent cfc...
Read more...
Feb 2
I ran into an interesting issue using the jQuery UI tabs ajax style and Internet Explorer.
If you setup the tabs with the with the cache turned off, they will still be cached in IE. I had worked around this issue by adding a counter that changed every time to my href for the tab, but I found a more elegant solution and thought I would share.
Read more...
Jan 30
Hi,
My name is Curt Gratz, and I'm a Coldbox Junkie...
Before I started posting to the Coldbox blog, I thought I should introduce myself. I am a long time (13+ year) Coldfusion developer, part owner of Coldbox Alliance Partner Computer Know How, and the newest member of Team Coldbox.
Read more...
Jan 7

We want to welcome B-Line Express to our ColdBox Alliance Program.
B-Line is a digital solution firm that has been providing experienced design and internet application development since 1995, and specializes in the delivery of user-centric technical solutions that help businesses connect with people. B-Line's expertise ranges from industry-specific projects in areas such as financial services to multi-faceted technology solutions that draw upon the company's background in distributed applications, data mining, data warehousing, broadband, and rich media.
Their core competencies include:
Flex, Java, ColdFusion and Coldbox.
Application List:
http://www.blinex.com/products.cfmClients List :
http://www.blinex.com/clients.cfmContact InfoPhone: 866.625.4639
email:
support@blinex.comWeb:
www.blinex.com So what is the ColdBox Alliance Program? The Alliance program is a network of professional companies that are ColdBox experts and can offer support, development and other professional services under The ColdBox Platform. They also have a tight relationship with us (the authors of ColdBox), so they get a unique insight into the development and capabilities of the platform that nobody gets. So it is our privilege to welcome B-Line Express as another Alliance Partner. Here is their
bio and description page.