In the post Improving On assertEquals with JUnit and Hamcrest I introduced use of Hamcrest with JUnit. I then looked at JUnit’s Built-in Hamcrest Core Matcher Support. In this post, I look at using ...
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 ...