RedisClientStringValuesCommandsTest.java
package redis.clients.jedis.commands.unified.client;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.params.ParameterizedClass;
import org.junit.jupiter.params.provider.MethodSource;
import redis.clients.jedis.RedisProtocol;
import redis.clients.jedis.UnifiedJedis;
import redis.clients.jedis.commands.unified.StringValuesCommandsTestBase;
import redis.clients.jedis.util.EnabledOnCommandCondition;
import redis.clients.jedis.util.RedisVersionCondition;
@ParameterizedClass
@MethodSource("redis.clients.jedis.commands.CommandsTestsParameters#respVersions")
public class RedisClientStringValuesCommandsTest extends StringValuesCommandsTestBase {
@RegisterExtension
public RedisVersionCondition versionCondition = new RedisVersionCondition(
RedisClientCommandsTestHelper::getEndpointConfig);
@RegisterExtension
public EnabledOnCommandCondition enabledOnCommandCondition = new EnabledOnCommandCondition(
RedisClientCommandsTestHelper::getEndpointConfig);
public RedisClientStringValuesCommandsTest(RedisProtocol protocol) {
super(protocol);
}
@Override
protected UnifiedJedis createTestClient() {
return RedisClientCommandsTestHelper.getClient(protocol);
}
@BeforeEach
public void setUp() {
RedisClientCommandsTestHelper.clearData();
}
}