mhansonp commented on code in PR #7608:
URL: https://github.com/apache/geode/pull/7608#discussion_r860131978


##########
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/DurableClientStatsDUnitTest.java:
##########
@@ -292,71 +262,60 @@ public static void checkStatistics() {
   public static void checkStatisticsWithExpectedValues(int reconnectionCount, 
int queueDropCount,
       int enqueueCount) {
     try {
-      Cache cache = CacheServerTestUtil.getCache();
+      Cache cache = getCache();
       org.apache.geode.LogWriter logger = cache.getLogger();
       CacheServerImpl currentServer =
-          (CacheServerImpl) (new ArrayList(cache.getCacheServers()).get(0));
+          (CacheServerImpl) (new ArrayList<>(cache.getCacheServers()).get(0));
       Acceptor ai = currentServer.getAcceptor();
       CacheClientNotifier notifier = ai.getCacheClientNotifier();
       CacheClientNotifierStats stats = notifier.getStats();
       logger.info("Stats:" + "\nDurableReconnectionCount:" + 
stats.get_durableReconnectionCount()
           + "\nQueueDroppedCount" + stats.get_queueDroppedCount()
           + "\nEventsEnqueuedWhileClientAwayCount" + 
stats.get_eventEnqueuedWhileClientAwayCount());
-      assertEquals(reconnectionCount, stats.get_durableReconnectionCount());
-      assertEquals(queueDropCount, stats.get_queueDroppedCount());
-      assertEquals(enqueueCount, 
stats.get_eventEnqueuedWhileClientAwayCount());
+      
assertThat(stats.get_durableReconnectionCount()).isEqualTo(reconnectionCount);

Review Comment:
   fixed.



-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@geode.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to