Open edenman opened 4 years ago
What do people do for this? Use a wrapper class and have a fake implementation of that? Mockito? It would be great if there were some easy way to build a no-op and set it like Analytics.setSingletonInstance(NO_OP_SEGMENT_ANALYTICS)
Analytics.setSingletonInstance(NO_OP_SEGMENT_ANALYTICS)
Fake implementation would be better even better than no-op.
What do people do for this? Use a wrapper class and have a fake implementation of that? Mockito? It would be great if there were some easy way to build a no-op and set it like
Analytics.setSingletonInstance(NO_OP_SEGMENT_ANALYTICS)