maksaska commented on code in PR #11793: URL: https://github.com/apache/ignite/pull/11793#discussion_r1922546435
########## modules/core/src/test/java/org/apache/ignite/internal/processors/performancestatistics/PerformanceStatisticsThinClientTest.java: ########## @@ -171,6 +178,75 @@ public void testCacheOperation() throws Exception { checkCacheOperation(CACHE_GET_AND_REMOVE, cache -> cache.getAndRemove(5)); } + /** + * Cache {@link TcpClientCache#putAllConflict} operation performed. + * @throws Exception If failed. + */ + @Test + public void testCachePutAllConflict() throws Exception { + checkCacheAllConflictOperations(CACHE_PUT_ALL_CONFLICT, false); + } + + /** + * Cache {@link TcpClientCache#removeAllConflict} operation performed. + * @throws Exception If failed. + */ + @Test + public void testCacheRemoveAllConflict() throws Exception { + checkCacheAllConflictOperations(CACHE_REMOVE_ALL_CONFLICT, false); + } + + /** + * Cache {@link TcpClientCache#putAllConflictAsync} operation performed. + * @throws Exception If failed. + */ + @Test + public void testCachePutAllConflictAsync() throws Exception { + checkCacheAllConflictOperations(CACHE_PUT_ALL_CONFLICT, true); + } + + /** + * Cache {@link TcpClientCache#removeAllConflictAsync} operation performed. + * @throws Exception If failed. + */ + @Test + public void testCacheRemoveAllConflictAsync() throws Exception { + checkCacheAllConflictOperations(CACHE_REMOVE_ALL_CONFLICT, true); + } + + /** + * @param isAsync boolean flag for asynchronous cache operation processing. + */ + private void checkCacheAllConflictOperations(OperationType opType, boolean isAsync) throws Exception { + int key = 6; + int val = 1; + + GridCacheVersion confl = new GridCacheVersion(1, 0, 1, (byte)2); + + Map<?, T3<?, GridCacheVersion, Long>> putMap = F.asMap(key, new T3<>(val, confl, CU.EXPIRE_TIME_ETERNAL)); Review Comment: Created separate methods for maps -- 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...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org