From 32e8c1bb98477e52da7d83662b4e0c005ffabbb0 Mon Sep 17 00:00:00 2001 From: Rui Gu Date: Thu, 20 Apr 2017 14:40:40 +0100 Subject: [PATCH] renamed test method and removed standard out output --- .../src/test/java/org/redisson/RedissonMapCacheTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/redisson/src/test/java/org/redisson/RedissonMapCacheTest.java b/redisson/src/test/java/org/redisson/RedissonMapCacheTest.java index ea87bd75d..5ed285660 100644 --- a/redisson/src/test/java/org/redisson/RedissonMapCacheTest.java +++ b/redisson/src/test/java/org/redisson/RedissonMapCacheTest.java @@ -842,7 +842,7 @@ public class RedissonMapCacheTest extends BaseTest { } @Test - public void testIssue827() { + public void testAddAndGet() { RMapCache mapCache = redisson.getMapCache("test_put_if_absent", StringCodec.INSTANCE); mapCache.putIfAbsent("4", 0L, 10000L, TimeUnit.SECONDS); mapCache.addAndGet("4", 1L); @@ -859,9 +859,8 @@ public class RedissonMapCacheTest extends BaseTest { map.putIfAbsent("4", 0L); Assert.assertEquals("1", map.get("4")); RMapCache mapCache1 = redisson.getMapCache("test_put_if_absent_3"); - Object currValue = mapCache1.putIfAbsent("4", 1.23, 10000L, TimeUnit.SECONDS); - Object updatedValue = mapCache1.addAndGet("4", 1D); - System.out.println("updatedValue: " + updatedValue); + mapCache1.putIfAbsent("4", 1.23, 10000L, TimeUnit.SECONDS); + mapCache1.addAndGet("4", 1D); Assert.assertEquals(2.23, mapCache1.get("4")); }