• 1. Sogeti
  • 2. JBoss
  • 3. IBM
  • 4. Oracle
  • 5. SpringSource
  • 6. NL-JUG
  • 7. Java


Syndication  RSS 2.0

RSS 1.0
RSS 2.0

Bookmark this site

Add 'JCN Blog' site to delicious  Add 'JCN Blog' site to technorati  Add 'JCN Blog' site to digg  Add 'JCN Blog' site to dzone

Posted by Hans-J├╝rgen Jacobs at 14:05 on Monday 7 November    Add 'Don’t sweat unit tests' site to delicious  Add 'Don’t sweat unit tests' site to technorati  Add 'Don’t sweat unit tests' site to digg  Add 'Don’t sweat unit tests' site to dzone

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. []

© 2020 Java Competence Network. All Rights Reserved.