{ by david linsin }

November 09, 2005

Don't sweat unit tests

article:
"By hiding the services your code depends on behind interfaces and using jMock to mock out those interfaces, you can unit test anything. In this article, Graham King shows how to build a simple example application by testing first. He starts with simple, easy-to-test methods, then progresses to ones that require external infrastructure support. He shows how working with interfaces and using mock objects makes testing easy."
Great article about unit testing! The article also provides a high-level introduction to JMock, a mock object framework. JMock seems quite easy to use, which I think is important with a mock object framework.

0 comments:


com_channels

  • mail(dlinsin@gmail.com)
  • jabber(dlinsin@gmail.com)
  • skype(dlinsin)

recent_postings

loading...