Skip to main content
4 events
when toggle format what by license comment
Aug 29, 2017 at 14:06 vote accept Christopher Francisco
Aug 28, 2017 at 19:20 comment added John Wu Exactly. You can stub a factory, but it's pretty hard to stub a static method.
Aug 28, 2017 at 19:02 comment added Christopher Francisco As a summary, go for the factory pattern approach, right?
Aug 28, 2017 at 18:51 history answered John Wu CC BY-SA 3.0