Browse DevX
Sign up for e-mail newsletters from DevX


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.




Building the Right Environment to Support AI, Machine Learning and Deep Learning

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.



Thanks for your registration, follow us on our social networks to keep up-to-date