@@ -93,13 +93,10 @@ public class LettuceClusterConnectionTests implements ClusterConnectionTests {
93
93
private static final GeoLocation <String > PALERMO = new GeoLocation <>("palermo" , POINT_PALERMO );
94
94
95
95
private static final GeoLocation <byte []> ARIGENTO_BYTES = new GeoLocation <>(
96
- "arigento" .getBytes (StandardCharsets .UTF_8 ),
97
- POINT_ARIGENTO );
98
- private static final GeoLocation <byte []> CATANIA_BYTES = new GeoLocation <>(
99
- "catania" .getBytes (StandardCharsets .UTF_8 ),
96
+ "arigento" .getBytes (StandardCharsets .UTF_8 ), POINT_ARIGENTO );
97
+ private static final GeoLocation <byte []> CATANIA_BYTES = new GeoLocation <>("catania" .getBytes (StandardCharsets .UTF_8 ),
100
98
POINT_CATANIA );
101
- private static final GeoLocation <byte []> PALERMO_BYTES = new GeoLocation <>(
102
- "palermo" .getBytes (StandardCharsets .UTF_8 ),
99
+ private static final GeoLocation <byte []> PALERMO_BYTES = new GeoLocation <>("palermo" .getBytes (StandardCharsets .UTF_8 ),
103
100
POINT_PALERMO );
104
101
105
102
private final RedisClusterClient client ;
@@ -179,7 +176,6 @@ void shouldCreateClusterConnectionWithPooling() {
179
176
factory .destroy ();
180
177
}
181
178
182
-
183
179
@ Test // DATAREDIS-315
184
180
public void appendShouldAddValueCorrectly () {
185
181
@@ -2315,6 +2311,8 @@ public void zPopMinShouldWorkCorrectly() {
2315
2311
@ EnabledOnCommand ("BZPOPMIN" )
2316
2312
public void bzPopMinShouldWorkCorrectly () {
2317
2313
2314
+ assertThat (clusterConnection .bZPopMin (KEY_1_BYTES , 10 , TimeUnit .MILLISECONDS )).isNull ();
2315
+
2318
2316
nativeConnection .zadd (KEY_1 , 10D , VALUE_1 );
2319
2317
nativeConnection .zadd (KEY_1 , 20D , VALUE_2 );
2320
2318
nativeConnection .zadd (KEY_1 , 30D , VALUE_3 );
@@ -2327,6 +2325,8 @@ public void bzPopMinShouldWorkCorrectly() {
2327
2325
@ EnabledOnCommand ("ZPOPMAX" )
2328
2326
public void zPopMaxShouldWorkCorrectly () {
2329
2327
2328
+ assertThat (clusterConnection .bZPopMax (KEY_1_BYTES , 10 , TimeUnit .MILLISECONDS )).isNull ();
2329
+
2330
2330
nativeConnection .zadd (KEY_1 , 10D , VALUE_1 );
2331
2331
nativeConnection .zadd (KEY_1 , 20D , VALUE_2 );
2332
2332
nativeConnection .zadd (KEY_1 , 30D , VALUE_3 );
@@ -2498,8 +2498,8 @@ public void zRangeWithScoresShouldReturnValuesAndScoreCorrectly() {
2498
2498
nativeConnection .zadd (KEY_1 , 20D , VALUE_2 );
2499
2499
nativeConnection .zadd (KEY_1 , 5D , VALUE_3 );
2500
2500
2501
- assertThat (clusterConnection .zRangeWithScores (KEY_1_BYTES , 1 , 2 ))
2502
- . contains ( new DefaultTuple ( VALUE_1_BYTES , 10D ), new DefaultTuple (VALUE_2_BYTES , 20D ));
2501
+ assertThat (clusterConnection .zRangeWithScores (KEY_1_BYTES , 1 , 2 )). contains ( new DefaultTuple ( VALUE_1_BYTES , 10D ),
2502
+ new DefaultTuple (VALUE_2_BYTES , 20D ));
2503
2503
}
2504
2504
2505
2505
@ Test // DATAREDIS-315
@@ -2616,8 +2616,8 @@ public void zRevRangeWithScoresShouldReturnValuesAndScoreCorrectly() {
2616
2616
nativeConnection .zadd (KEY_1 , 20D , VALUE_2 );
2617
2617
nativeConnection .zadd (KEY_1 , 5D , VALUE_3 );
2618
2618
2619
- assertThat (clusterConnection .zRevRangeWithScores (KEY_1_BYTES , 1 , 2 ))
2620
- . contains ( new DefaultTuple ( VALUE_3_BYTES , 5D ), new DefaultTuple (VALUE_1_BYTES , 10D ));
2619
+ assertThat (clusterConnection .zRevRangeWithScores (KEY_1_BYTES , 1 , 2 )). contains ( new DefaultTuple ( VALUE_3_BYTES , 5D ),
2620
+ new DefaultTuple (VALUE_1_BYTES , 10D ));
2621
2621
}
2622
2622
2623
2623
@ Test
0 commit comments