Builder design pattern with inheritance: is there a better way?

后端 未结 3 1631
失恋的感觉
失恋的感觉 2020-12-24 07:42

I\'m creating a series of builders to clean up the syntax which creates domain classes for my mocks as part of improving our overall unit tests. My builders essentially pop

3条回答
  •  自闭症患者
    2020-12-24 08:27

    All I can say is that if there is a way of doing it, I want to know about it too - I use exactly this pattern in my Protocol Buffers port. In fact, I'm glad to see that someone else has resorted to it - it means we're at least somewhat likely to be right!

提交回复
热议问题