O'Reilly logo

Java EE Development with Eclipse - Second Edition by Ram Kulkarni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Unit Testing

Testing of software that you develop is a very important part of the overall software development cycle. There are many types of testing, and each one has a specific purpose. Each one varies in the scope of testing. Some of the examples of testing are functional testing, integration testing, scenario testing, and unit testing.

Of all these types, unit tests are the narrowest in scope and are typically coded and executed by developers. Each unit test is meant to test a specific and small piece of functionality (typically, a method in a class) and is expected to execute without any external dependencies. Here are some of the reasons why you should write good unit tests:

  • Catch bugs early. If you find a bug in functional or integration ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required