我有它的类和生成器。
Builder 仅用于测试代码,我不想在生产代码中使用它。
我的课:
public class MyClassThatIWantBuilderFor {
// many fields that I want initialize using builder instead of 10 arg constructor
}
我的测试用例:
public class MyTest {
// I want to have builder for MyClassThatIWantBuilderFor class here
}
如何在自动值中实现它?