Polishing.
Reformat code. Tweak Javadoc See #1816. Original pull request: #1968.
This commit is contained in:
@@ -1925,7 +1925,7 @@ public abstract class AbstractConnectionIntegrationTests {
|
||||
actual.add(connection.zRemRangeByLex("myset", Range.range().gte("alpha").lte("omega")));
|
||||
|
||||
actual.add(connection.zRange("myset", 0L, -1L));
|
||||
verifyResults(Arrays.asList(new Object[] { true, true, true,true, true, true,true, true, true,true, 6L, new LinkedHashSet<String>(Arrays.asList("ALPHA", "aaaa", "zap", "zip")) }));
|
||||
verifyResults(Arrays.asList( true, true, true, true, true, true, true, true, true, true, 6L, new LinkedHashSet<>(Arrays.asList("ALPHA", "aaaa", "zap", "zip"))));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -1935,7 +1935,8 @@ public abstract class AbstractConnectionIntegrationTests {
|
||||
actual.add(connection.zRemRangeByScore("myset", 0d, 1d));
|
||||
actual.add(connection.zRange("myset", 0L, -1L));
|
||||
verifyResults(
|
||||
Arrays.asList(new Object[] { true, true, 1L, new LinkedHashSet<>(Arrays.asList("Bob")) }));
|
||||
Arrays.asList(new Object[] { true, true, 1L, new LinkedHashSet<>(Collections
|
||||
.singletonList("Bob")) }));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -21,11 +21,13 @@ import org.springframework.data.redis.connection.RedisConnectionFactory;
|
||||
import org.springframework.data.redis.serializer.RedisSerializer;
|
||||
|
||||
/**
|
||||
* Test extension to {@link RedisTemplate} to use a Mockito mocked {@link RedisConnection}.
|
||||
*
|
||||
* @author Christoph Strobl
|
||||
*/
|
||||
public class ConnectionMockingRedisTemplate<K, V> extends RedisTemplate<K, V> {
|
||||
|
||||
private RedisConnection connectionMock;
|
||||
private final RedisConnection connectionMock;
|
||||
|
||||
private ConnectionMockingRedisTemplate() {
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@ import org.junit.jupiter.api.Test;
|
||||
import org.springframework.data.redis.connection.RedisZSetCommands.Range;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link DefaultBoundZSetOperations}.
|
||||
*
|
||||
* @author Christoph Strobl
|
||||
*/
|
||||
class DefaultBoundZSetOperationsUnitTests {
|
||||
|
||||
@@ -22,6 +22,8 @@ import org.junit.jupiter.api.Test;
|
||||
import org.springframework.data.redis.connection.RedisZSetCommands.Range;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link DefaultZSetOperations}.
|
||||
*
|
||||
* @author Christoph Strobl
|
||||
*/
|
||||
class DefaultZSetOperationsUnitTests {
|
||||
|
||||
Reference in New Issue
Block a user