Why, of course, by virtually starting up the Java class and pushing the buttons, so to speak. You test a Java class by calling methods on it from another Java class. The following Java source file is ...
In a recent article, I covered the creation of JUnit tests to perform unit testing on Java classes. Although testing individual classes is helpful, unit tests work best when they're written to cover ...