File tree Expand file tree Collapse file tree
src/test/java/com/redislabs/modules/rejson Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,10 +163,9 @@ public void delValidShouldSucceed() throws Exception {
163163 assertFalse (jedis .exists ("obj" ));
164164 }
165165
166- @ Test (expected = Exception .class )
167166 public void delException () throws Exception {
168167 client .set ( "foobar" , new FooBarObject (), Path .ROOT_PATH );
169- client .del ( "foobar" , new Path (".foo[1]" ));
168+ assertEquals ( 0L , client .del ( "foobar" , new Path (".foo[1]" )). longValue ( ));
170169 }
171170
172171 @ Test
Original file line number Diff line number Diff line change @@ -207,11 +207,10 @@ public void delValidShouldSucceed() throws Exception {
207207 assertFalse (jedis .exists ("obj" ));
208208 }
209209
210- @ Test (expected = Exception .class )
211210 public void delException () throws Exception {
212211 jedis .flushDB ();
213212 reJSON .set ("foobar" , new FooBarObject (), Path .ROOT_PATH );
214- reJSON .del ("foobar" , new Path (".foo[1]" ));
213+ assertEquals ( 0L , reJSON .del ( "foobar" , new Path (".foo[1]" )). longValue ( ));
215214 }
216215
217216 @ SuppressWarnings ("deprecation" )
You can’t perform that action at this time.
0 commit comments