Visit the ColdFusionProNews Directory
Beginners
Installation, Coding Techniques, Data Structures...
CF Powered Sites
Stores, Directories, Universities...
Developers
Developers, Designers, Experts...
E-commerce
Shoes, Food, Music...
Education
Books, Online Resource, Languages...
Expert
LiveChat , CFX XMLParser , User Defined Function Library...
Hosting
Dedicated Servers, Virtual Server, Multi-user...
Intermediate
AutoResize , DataSource Encryption, Guestbook...

Submit your site for FREE

Archive for April, 2008

CFUG Simulcast: cf.Objective() Preview

Wednesday, April 23rd, 2008

I figured this event deserves a much broader audience. If you haven’t attended an Online ColdFusion Meetup event, this would be a good place to start.

Announcing a new meeting for The Online ColdFusion Meetup Group!

What: “Cleveland CFUG Simulcast: cf.Objective() Preview”, with 3 Speakers

When: Thursday, Apr 24, 6:00pm US EDT (GMT-5) (What time is that for you? See this link which shows the time as US EDT and you can choose your city from the list offered to see it in your own time.)

Meeting URL: http://experts.acrobat.com/cfmeetup/
Duration: Approx. 1 hour
Meeting will be recorded. URL will be posted after meeting at http://recordings.coldfusionmeetup.com

We’re taking a departure for our meeting on Thursday, Apr 24, at 6pm (US EDT), as we’ll have a special 2 hour event, in our “Cleveland CFUG Simulcast: cf.Objective() Preview with 3 speakers”. This is the CF Meetup’s first experience doing a CF user group simulcast. Please have patience, since it’s a different environment from our norm, with presenters speaking to a live audience, in addition to being broadcast over the meetup.

This event will be a preview of 3 of many sessions from the cf.objective() conference coming up in May. If you’re not familiar with this conference the details are below. This preview session will have Ray Camden, Brian Meloche & Todd Sharp, each offering a preview of their presentation (about 30 minutes), to give you some insight into what the conference has to offer.

(more…)

CFEasyMock on RIAForge

Wednesday, April 2nd, 2008

As a fan of unit testing, I was interested to hear about a new mock object generator project appearing in the CF world.

I’ve been using Brian Kotek’s ColdMock for a while and I really like how easy it makes it to test CFCs that depend on several other CFCs - because you can create “mock” versions of those CFCs on the fly that return specific values. Mock objects are a good way to provide a consistent environment for your CFCs under test, as well as a way to let your CFCs be tested without them affected the “real” environment (because you can create a “mock” environment which can even include things such as data access objects to fake the whole database layer).

As I blogged recently, I’ve switched from cfcUnit to MXUnit and the mailing list is pretty active. Mike Steele posted that he had ported EasyMock to CFML. My first reaction was “Have you looked at Brian Kotek’s ColdMock project?” and Mike explained that EasyMock isn’t just about creating simple mock objects but about verifying behavior in those mock objects.

Intrigued, I read about EasyMock, a Java project that targets JUnit, and realized the power of being able to create mock objects that expect to be called in certain ways and can, as part of your unit test, actually verify the calls made on them!

I asked Mike to send me a build and I played with it and liked it a lot, pretty much instantly. I sent him some feedback and very soon I got an updated build that incorporated much of my feedback - and a note saying he was already going in that direction. Nice to find a project where I’m on the same page as the author!

You can download the latest build from the CFEasyMock project page on RIAForge. It’s a very simple but very powerful concept that should really help you with your unit testing!

(more…)