Closed f2prateek closed 7 years ago
By analyzing the blame information on this pull request, we identified and undefined to be a potential reviewer.
Awesome - thanks. Looks like all V2 tests need integration.useLogRevenueV2 = true;
because we still default this setting to false. That's why a few tests are failing. I can submit an update.
@brennan yep, just saw that and fixed!
Instead of using
properties.toJSONObject()
, usenew JSONObject()
where possible. This is makes it easy to read in the tests what the final JSONObject will look like. I only did this for empty properties for now, but would be good to do this for other ones as well.Split some tests. Anytime you call
reset
on a mock, it's generally a good idea to split that into multiple test cases.Use a hamcrest matcher
Matchers.samePropertyValuesAs(expectedIdentify)
instead of ArgumentCaptor to make tests a bit easier to read.Fix some lint warnings (e.g. deprecation).