File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
src/test/java/redis/clients/jedis/tests Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change 88
99import redis .clients .jedis .Connection ;
1010import redis .clients .jedis .Protocol ;
11- import redis .clients .jedis .Protocol .Command ;
12- import redis .clients .jedis .commands .ProtocolCommand ;
1311import redis .clients .jedis .exceptions .JedisConnectionException ;
1412
1513public class ConnectionTest {
@@ -62,29 +60,6 @@ public void checkCloseable() {
6260 client .close ();
6361 }
6462
65- @ Test
66- public void getErrorMultibulkLength () throws Exception {
67- class TestConnection extends Connection {
68- public TestConnection () {
69- super ("localhost" , 6379 );
70- }
71-
72- @ Override
73- public void sendCommand (ProtocolCommand cmd , byte []... args ) {
74- super .sendCommand (cmd , args );
75- }
76- }
77-
78- TestConnection conn = new TestConnection ();
79-
80- try {
81- conn .sendCommand (Command .HMSET , new byte [1024 * 1024 + 1 ][0 ]);
82- fail ("Should throw exception" );
83- } catch (JedisConnectionException jce ) {
84- assertEquals ("ERR Protocol error: invalid multibulk length" , jce .getMessage ());
85- }
86- }
87-
8863 @ Test
8964 public void readWithBrokenConnection () {
9065 class BrokenConnection extends Connection {
You can’t perform that action at this time.
0 commit comments