Fix conns wrapping UnsupportedOperationException

in RedisSystemException

DATAREDIS-146
This commit is contained in:
Jennifer Hickey
2013-07-03 17:11:02 -07:00
parent d3809ea05c
commit 0729055381
5 changed files with 147 additions and 153 deletions

View File

@@ -27,7 +27,6 @@ import org.junit.After;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.data.redis.RedisSystemException;
import org.springframework.data.redis.connection.AbstractConnectionPipelineIntegrationTests;
import org.springframework.data.redis.connection.DefaultStringTuple;
import org.springframework.data.redis.connection.StringRedisConnection.StringTuple;
@@ -148,7 +147,7 @@ public class JedisConnectionPipelineIntegrationTests extends
super.testRestoreTtl();
}
@Test(expected = RedisSystemException.class)
@Test(expected = UnsupportedOperationException.class)
public void testBitSet() throws Exception {
super.testBitSet();
}
@@ -193,42 +192,42 @@ public class JedisConnectionPipelineIntegrationTests extends
super.testBitOpNotMultipleSources();
}
@Test(expected = RedisSystemException.class)
@Test(expected = UnsupportedOperationException.class)
public void testRandomKey() {
super.testRandomKey();
}
@Test(expected = RedisSystemException.class)
@Test(expected = UnsupportedOperationException.class)
public void testGetRangeSetRange() {
super.testGetRangeSetRange();
}
@Test(expected = RedisSystemException.class)
@Test(expected = UnsupportedOperationException.class)
public void testPingPong() throws Exception {
super.testPingPong();
}
@Test(expected = RedisSystemException.class)
@Test(expected = UnsupportedOperationException.class)
public void testInfo() throws Exception {
super.testInfo();
}
@Test(expected = RedisSystemException.class)
@Test(expected = UnsupportedOperationException.class)
public void testZRevRangeByScore() {
super.testZRevRangeByScore();
}
@Test(expected = RedisSystemException.class)
@Test(expected = UnsupportedOperationException.class)
public void testZRevRangeByScoreOffsetCount() {
super.testZRevRangeByScoreOffsetCount();
}
@Test(expected = RedisSystemException.class)
@Test(expected = UnsupportedOperationException.class)
public void testZRevRangeByScoreWithScores() {
super.testZRevRangeByScoreWithScores();
}
@Test(expected = RedisSystemException.class)
@Test(expected = UnsupportedOperationException.class)
public void testZRevRangeByScoreWithScoresOffsetCount() {
super.testZRevRangeByScoreWithScoresOffsetCount();
}

View File

@@ -23,7 +23,6 @@ import java.util.List;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.dao.InvalidDataAccessApiUsageException;
import org.springframework.data.redis.RedisSystemException;
import org.springframework.data.redis.RedisVersionUtils;
/**
@@ -88,12 +87,12 @@ public class JedisConnectionTransactionIntegrationTests extends
// Unsupported Ops
@Test(expected = RedisSystemException.class)
@Test(expected = UnsupportedOperationException.class)
public void testGetConfig() {
connection.getConfig("*");
}
@Test(expected = RedisSystemException.class)
@Test(expected = UnsupportedOperationException.class)
public void testEcho() {
super.testEcho();
}