JUnit is a Regression Testing Framework used by developers to implement unit testing in Java and accelerate programming speed and increase the quality of code
Define an interface for creating an object, but let sub let subclasses decide which class to instantiate Factory Methods lets a class defer instantiation to subclasses(定义一个用户创建对象的接口,让子类决定实例化哪一个类。工厂方法使一个类的实例化到其实例)