Skip to content

Commit ff790f7

Browse files
committed
updating the test with the fact that we can not use QBE with POJO
1 parent efcc2dd commit ff790f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-complete/src/test/java/com/marklogic/javaclient/TestPOJOWithStrucQD.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public void testPOJOSearchWithStringHandle() throws JsonProcessingException, IOE
286286

287287
assertEquals("Total search results resulted are ",6,actNode.asInt() );
288288
}
289-
@Test
289+
@Test(expected = ClassCastException.class)
290290
public void testPOJOSearchWithRawXMLStructQD() {
291291
PojoRepository<Artifact,Long> products = client.newPojoRepository(Artifact.class, Long.class);
292292
PojoPage<Artifact> p;
@@ -337,7 +337,7 @@ public void testPOJOSearchWithRawXMLStructQD() {
337337
assertEquals("page number after the loop",1,p.getPageNumber());
338338
assertEquals("total no of pages",1,p.getTotalPages());
339339
}
340-
@Test
340+
@Test(expected = ClassCastException.class)
341341
public void testPOJOSearchWithRawJSONStructQD() {
342342
PojoRepository<Artifact,Long> products = client.newPojoRepository(Artifact.class, Long.class);
343343
PojoPage<Artifact> p;

0 commit comments

Comments
 (0)