File tree 1 file changed +0
-25
lines changed
src/test/java/redis/clients/jedis/tests
1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import redis .clients .jedis .Connection ;
10
10
import redis .clients .jedis .Protocol ;
11
- import redis .clients .jedis .Protocol .Command ;
12
- import redis .clients .jedis .commands .ProtocolCommand ;
13
11
import redis .clients .jedis .exceptions .JedisConnectionException ;
14
12
15
13
public class ConnectionTest {
@@ -62,29 +60,6 @@ public void checkCloseable() {
62
60
client .close ();
63
61
}
64
62
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
-
88
63
@ Test
89
64
public void readWithBrokenConnection () {
90
65
class BrokenConnection extends Connection {
You can’t perform that action at this time.
0 commit comments