Skip to content

Commit 2241816

Browse files
Ajit GeorgeAjit George
authored andcommitted
Merge branch 'newRegressionTests' of https://github.com/marklogic/java-client-api into newRegressionTests
2 parents 9378939 + ff790f7 commit 2241816

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)