Skip to content

Commit 27dd646

Browse files
committed
Add test for missing field
1 parent 630d5ce commit 27dd646

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/java/com/redislabs/modules/rejson/ClientTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ public void typeChecksShouldSucceed() throws Exception {
179179
assertSame(float.class, client.type( "foobar", new Path(".fooF")));
180180
assertSame(List.class, client.type( "foobar", new Path(".fooArr")));
181181
assertSame(boolean.class, client.type( "foobar", new Path(".fooB")));
182+
183+
try {
184+
client.type( "foobar", new Path(".fooErr"));
185+
fail();
186+
}catch(Exception e) {}
182187
}
183188

184189
@Test(expected = Exception.class)

0 commit comments

Comments
 (0)