简单的单元测试使用junit和hamcrest定义要测试的类@Builder@Datapublic class AddClass { private double a; private double b; public double add(double a, double b) { r...