Unit Testing Terminology

January 18, 2006

  • Dummy objects are passed around but never actually used. Usually they are just used to fill parameter lists.
  • Fake objects actually have working implementations, but usually take some shortcut which makes them not suitable for production (an InMemoryDatabase is a good example).
  • Stubs provide canned answers to calls made during the test, usually not responding at all to anything outside what’s programmed in for the test. Stubs may also record information about calls, such as an email gateway stub that remembers the messages it ’sent’, or maybe only how many messages it ’sent’.
  • Mocks are pre-programmed with expectations which form a specification of the calls they are expected to receive. They can throw an exception if they receive a call they don’t expect and are checked during verification to ensure they got all the calls they were expecting.

The packaging and the beauty of the box is beyond anything I’ve ever seen. The user’s manual is petite and succinct.

I am using a Logitech Cordless keyboard and mouse, however it does not have the Apple Command key and most of the shortcuts require it.

The install process does not prompt for the root password and the Terminal app isn’t included in the dock panel.

By default the mini goes to sleep after 15 minutes of inactivity which I had to change.

And the Microsoft Office evaluation has already expired before I could test drive it on the Mac.

Finally it takes time to get used to the menubar all the way on the top and not attached to the window, it took me some time to figure out how to import pictures in the iPhoto library because I just didn’t think about looking at the menubar.