@@ -44,8 +44,6 @@ public void setUp() {
44
44
45
45
@ Test
46
46
public void basicSetGetShouldSucceed () {
47
- Assume .assumeFalse (RedisProtocolUtil .getRedisProtocol () == RedisProtocol .RESP3 );
48
-
49
47
// naive set with a path
50
48
jsonV2 .jsonSetWithEscape ("null" , ROOT_PATH , (Object ) null );
51
49
assertJsonArrayEquals (jsonArray ((Object ) null ), jsonV2 .jsonGet ("null" , ROOT_PATH ));
@@ -66,29 +64,6 @@ public void basicSetGetShouldSucceed() {
66
64
assertJsonArrayEquals (jsonArray ("strung" ), jsonV2 .jsonGet ("obj" , p ));
67
65
}
68
66
69
- @ Test
70
- public void basicSetGetShouldSucceedResp3 () {
71
- Assume .assumeTrue (RedisProtocolUtil .getRedisProtocol () == RedisProtocol .RESP3 );
72
-
73
- // naive set with a path
74
- jsonV2 .jsonSetWithEscape ("null" , ROOT_PATH , (Object ) null );
75
- assertJsonArrayEquals (jsonArray ((Object ) null ), jsonV2 .jsonGet ("null" , ROOT_PATH ));
76
-
77
- // real scalar value and no path
78
- jsonV2 .jsonSetWithEscape ("str" , "strong" );
79
- assertJsonArrayEquals (jsonArray ("strong" ), jsonV2 .jsonGet ("str" ));
80
-
81
- // a slightly more complex object
82
- IRLObject obj = new IRLObject ();
83
- jsonV2 .jsonSetWithEscape ("obj" , obj );
84
- assertJsonArrayEquals (jsonArray (new JSONObject (gson .toJson (obj ))), jsonV2 .jsonGet ("obj" ));
85
-
86
- // check an update
87
- Path2 p = Path2 .of (".str" );
88
- jsonV2 .jsonSet ("obj" , p , gson .toJson ("strung" ));
89
- assertJsonArrayEquals (jsonArray ("strung" ), jsonV2 .jsonGet ("obj" , p ));
90
- }
91
-
92
67
@ Test
93
68
public void setExistingPathOnlyIfExistsShouldSucceed () {
94
69
jsonV2 .jsonSetWithEscape ("obj" , new IRLObject ());
0 commit comments