concept JUnit api in category java

This is an excerpt from Manning's book JUnit in Action, Second Edition.
In this section, we analyze techniques that make DbUnit usage easier to understand and maintain. These techniques don’t employ any particular DbUnit feature, just advanced Java and JUnit APIs.
As we already discussed in chapter 2, the backbone of JUnit consists of three classes—TestClass, Runner, and Suite—the latter one being a Runner itself. This means that once we understand how those classes operate, we can write whatever tests we need with JUnit. If you find JUnit insufficient for your testing needs, you can extend the JUnit API with custom classes. Since JUnit is open source you can rebuild or extend. There is no obvious benefit in extending the TestClass class. On the other hand, the Runner class is especially designed to be easily extensible for our needs.
This appendix gives a brief introduction to how to extend the JUnit API with custom Runner objects. It also describes how to extend the Hamcrest API with custom matchers so that we eventually customize not only our runners but also our assert calls.