Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Two Critical Tips for Unit Testing in Java : Page 4

There are two issues that often vex Java developers when they attempt to unit test their code. The first one is whether to design their systems in a manner that facilitates testing. The second is how to test non-deterministic code. This article offers helpful tips for handling these dilemmas.


advertisement
Unit testing is an important tool for the modern developer, and Java has an abundance of libraries that can help with the development of your tests cases (particularly JUnit, which I will discuss in detail in an upcoming follow-up to this article). Becoming familiar with them all is important because a majority of your projects will require you to use them. Unit tests are fairly easy to write and have very rapid performance, so it's not going to take you long to run them.


Bryan Dollery is an experienced Java trainer and software engineer living in New Zealand. He recently presented papers at three major international software development conferences (in NZ and Australia). Reach him by e-mail at Bryan.Dollery@ChaosEngineers.co.nz.
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap