@@ -50,8 +50,6 @@ public void setUp() {
50
50
51
51
@ Test
52
52
public void basicSetGetShouldSucceed () {
53
- Assume .assumeFalse (protocol == RedisProtocol .RESP3 );
54
-
55
53
// naive set with a path
56
54
jsonV2 .jsonSetWithEscape ("null" , ROOT_PATH , (Object ) null );
57
55
assertJsonArrayEquals (jsonArray ((Object ) null ), jsonV2 .jsonGet ("null" , ROOT_PATH ));
@@ -72,29 +70,6 @@ public void basicSetGetShouldSucceed() {
72
70
assertJsonArrayEquals (jsonArray ("strung" ), jsonV2 .jsonGet ("obj" , p ));
73
71
}
74
72
75
- @ Test
76
- public void basicSetGetShouldSucceedResp3 () {
77
- Assume .assumeTrue (protocol == RedisProtocol .RESP3 );
78
-
79
- // naive set with a path
80
- jsonV2 .jsonSetWithEscape ("null" , ROOT_PATH , (Object ) null );
81
- assertJsonArrayEquals (jsonArray ((Object ) null ), jsonV2 .jsonGet ("null" , ROOT_PATH ));
82
-
83
- // real scalar value and no path
84
- jsonV2 .jsonSetWithEscape ("str" , "strong" );
85
- assertJsonArrayEquals (jsonArray ("strong" ), jsonV2 .jsonGet ("str" ));
86
-
87
- // a slightly more complex object
88
- IRLObject obj = new IRLObject ();
89
- jsonV2 .jsonSetWithEscape ("obj" , obj );
90
- assertJsonArrayEquals (jsonArray (new JSONObject (gson .toJson (obj ))), jsonV2 .jsonGet ("obj" ));
91
-
92
- // check an update
93
- Path2 p = Path2 .of (".str" );
94
- jsonV2 .jsonSet ("obj" , p , gson .toJson ("strung" ));
95
- assertJsonArrayEquals (jsonArray ("strung" ), jsonV2 .jsonGet ("obj" , p ));
96
- }
97
-
98
73
@ Test
99
74
public void setExistingPathOnlyIfExistsShouldSucceed () {
100
75
jsonV2 .jsonSetWithEscape ("obj" , new IRLObject ());
0 commit comments