concept unit testing in category java

This is an excerpt from Manning's book JUnit in Action.
Some developers feel that automated tests are essential parts of the development process: you cannot prove that a component works until it passes a comprehensive series of tests. In fact, two developers felt that this type of unit testing was so important that it deserved its own framework. In 1997, Erich Gamma and Kent Beck created a simple but effective unit testing framework for Java called JUnit: they were on a long plane trip, and it gave them something interesting to do. Erich wanted Kent to learn Java, and Erich was interested in knowing more about the SUnit testing framework that Kent created earlier for Smalltalk, and the flight gave them time to do both.
If you strive for testing at different levels (from unit testing to acceptance testing) and obtain high code coverage (as close to 100 percent as possible), how sure can you be that your code is close to perfection?

This is an excerpt from Manning's book JUnit in Action, Second Edition.
Some developers feel that automated tests are an essential part of the development process: you can’t prove a component works until it passes a comprehensive series of tests. Two developers felt that this type of unit testing was so important that it deserved its own framework. In 1997, Erich Gamma and Kent Beck created a simple but effective unit testing framework for Java, called JUnit. Their work followed the design of an earlier framework Kent Beck had created for Smalltalk, called SUnit.
The next step for many developers would be to cobble up a stub application to go with the skeleton controller. As test-infected developers, we can write a test suite for the controller without fussing with a stub application. That’s the beauty of unit testing. We can write a package and verify that it works, all outside a conventional Java application.
The point of unit testing is to test one object at a time. In an object-oriented environment like Java, you design objects to interact with other objects. To create a unit test, it follows that you need two flavors of objects: the domain object you’re testing and test objects to interact with the object under test.