agingade commented on a change in pull request #4987: URL: https://github.com/apache/geode/pull/4987#discussion_r417691691
########## File path: geode-core/src/distributedTest/java/org/apache/geode/cache/ReplicateCacheListenerDistributedTest.java ########## @@ -302,4 +349,64 @@ public void afterDestroy(final EntryEvent<String, Integer> event) { errorCollector.checkThat(event.getNewValue(), nullValue()); } } + + protected class ClearCountingCacheListener extends BaseCacheListener { Review comment: It looks like from original implementation, along with after* event, the tests also verifies certain states with different operation. You are right there is opportunity to clean this test and refactor. I will try to file a separate ticket for this. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org