From 070df5b25e698b03e4352914f1537fca79b2241e Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 13 Oct 2020 16:07:36 +0200 Subject: [PATCH] DATAREDIS-1231 - Polishing. Add author tag. Fix typos in test method names. Original pull request: #568. --- .../redis/connection/jedis/JedisClusterListCommands.java | 1 + .../data/redis/connection/ClusterConnectionTests.java | 8 ++++---- .../connection/jedis/JedisClusterConnectionTests.java | 8 ++++---- .../connection/lettuce/LettuceClusterConnectionTests.java | 8 ++++---- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/main/java/org/springframework/data/redis/connection/jedis/JedisClusterListCommands.java b/src/main/java/org/springframework/data/redis/connection/jedis/JedisClusterListCommands.java index 07af74eda..89626f3d3 100644 --- a/src/main/java/org/springframework/data/redis/connection/jedis/JedisClusterListCommands.java +++ b/src/main/java/org/springframework/data/redis/connection/jedis/JedisClusterListCommands.java @@ -31,6 +31,7 @@ import org.springframework.util.CollectionUtils; /** * @author Christoph Strobl * @author Mark Paluch + * @author Jot Zhao * @since 2.0 */ @RequiredArgsConstructor diff --git a/src/test/java/org/springframework/data/redis/connection/ClusterConnectionTests.java b/src/test/java/org/springframework/data/redis/connection/ClusterConnectionTests.java index 54e4aaef3..14af9eb7e 100644 --- a/src/test/java/org/springframework/data/redis/connection/ClusterConnectionTests.java +++ b/src/test/java/org/springframework/data/redis/connection/ClusterConnectionTests.java @@ -46,16 +46,16 @@ public interface ClusterConnectionTests { void bitOpShouldThrowExceptionWhenKeysDoNotMapToSameSlot(); // DATAREDIS-315 - void blPopShouldPopElementCorectly(); + void blPopShouldPopElementCorrectly(); // DATAREDIS-315 - void blPopShouldPopElementCorectlyWhenKeyOnSameSlot(); + void blPopShouldPopElementCorrectlyWhenKeyOnSameSlot(); // DATAREDIS-315 - void brPopShouldPopElementCorectly(); + void brPopShouldPopElementCorrectly(); // DATAREDIS-315 - void brPopShouldPopElementCorectlyWhenKeyOnSameSlot(); + void brPopShouldPopElementCorrectlyWhenKeyOnSameSlot(); // DATAREDIS-315 void clientListShouldGetInfosForAllClients(); diff --git a/src/test/java/org/springframework/data/redis/connection/jedis/JedisClusterConnectionTests.java b/src/test/java/org/springframework/data/redis/connection/jedis/JedisClusterConnectionTests.java index 7dbddc466..4ac0e6d47 100644 --- a/src/test/java/org/springframework/data/redis/connection/jedis/JedisClusterConnectionTests.java +++ b/src/test/java/org/springframework/data/redis/connection/jedis/JedisClusterConnectionTests.java @@ -202,7 +202,7 @@ public class JedisClusterConnectionTests implements ClusterConnectionTests { } @Test // DATAREDIS-315 - public void blPopShouldPopElementCorectly() { + public void blPopShouldPopElementCorrectly() { nativeConnection.lpush(KEY_1_BYTES, VALUE_1_BYTES, VALUE_2_BYTES); nativeConnection.lpush(KEY_2_BYTES, VALUE_3_BYTES); @@ -211,7 +211,7 @@ public class JedisClusterConnectionTests implements ClusterConnectionTests { } @Test // DATAREDIS-315 - public void blPopShouldPopElementCorectlyWhenKeyOnSameSlot() { + public void blPopShouldPopElementCorrectlyWhenKeyOnSameSlot() { nativeConnection.lpush(SAME_SLOT_KEY_1_BYTES, VALUE_1_BYTES, VALUE_2_BYTES); nativeConnection.lpush(SAME_SLOT_KEY_2_BYTES, VALUE_3_BYTES); @@ -220,7 +220,7 @@ public class JedisClusterConnectionTests implements ClusterConnectionTests { } @Test // DATAREDIS-315 - public void brPopShouldPopElementCorectly() { + public void brPopShouldPopElementCorrectly() { nativeConnection.lpush(KEY_1_BYTES, VALUE_1_BYTES, VALUE_2_BYTES); nativeConnection.lpush(KEY_2_BYTES, VALUE_3_BYTES); @@ -229,7 +229,7 @@ public class JedisClusterConnectionTests implements ClusterConnectionTests { } @Test // DATAREDIS-315 - public void brPopShouldPopElementCorectlyWhenKeyOnSameSlot() { + public void brPopShouldPopElementCorrectlyWhenKeyOnSameSlot() { nativeConnection.lpush(SAME_SLOT_KEY_1_BYTES, VALUE_1_BYTES, VALUE_2_BYTES); nativeConnection.lpush(SAME_SLOT_KEY_2_BYTES, VALUE_3_BYTES); diff --git a/src/test/java/org/springframework/data/redis/connection/lettuce/LettuceClusterConnectionTests.java b/src/test/java/org/springframework/data/redis/connection/lettuce/LettuceClusterConnectionTests.java index 46d278569..d8fcaf2d6 100644 --- a/src/test/java/org/springframework/data/redis/connection/lettuce/LettuceClusterConnectionTests.java +++ b/src/test/java/org/springframework/data/redis/connection/lettuce/LettuceClusterConnectionTests.java @@ -234,7 +234,7 @@ public class LettuceClusterConnectionTests implements ClusterConnectionTests { } @Test // DATAREDIS-315 - public void blPopShouldPopElementCorectly() { + public void blPopShouldPopElementCorrectly() { nativeConnection.lpush(KEY_1, VALUE_1, VALUE_2); nativeConnection.lpush(KEY_2, VALUE_3); @@ -243,7 +243,7 @@ public class LettuceClusterConnectionTests implements ClusterConnectionTests { } @Test // DATAREDIS-315 - public void blPopShouldPopElementCorectlyWhenKeyOnSameSlot() { + public void blPopShouldPopElementCorrectlyWhenKeyOnSameSlot() { nativeConnection.lpush(SAME_SLOT_KEY_1, VALUE_1, VALUE_2); nativeConnection.lpush(SAME_SLOT_KEY_2, VALUE_3); @@ -252,7 +252,7 @@ public class LettuceClusterConnectionTests implements ClusterConnectionTests { } @Test // DATAREDIS-315 - public void brPopShouldPopElementCorectly() { + public void brPopShouldPopElementCorrectly() { nativeConnection.lpush(KEY_1, VALUE_1, VALUE_2); nativeConnection.lpush(KEY_2, VALUE_3); @@ -261,7 +261,7 @@ public class LettuceClusterConnectionTests implements ClusterConnectionTests { } @Test // DATAREDIS-315 - public void brPopShouldPopElementCorectlyWhenKeyOnSameSlot() { + public void brPopShouldPopElementCorrectlyWhenKeyOnSameSlot() { nativeConnection.lpush(SAME_SLOT_KEY_1, VALUE_1, VALUE_2); nativeConnection.lpush(SAME_SLOT_KEY_2, VALUE_3);