Skip to content

Commit b00c560

Browse files
Ajit GeorgeAjit George
authored andcommitted
Fixed test. Class cast exception no longer needed.
1 parent 3c7d177 commit b00c560

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-complete/src/test/java/com/marklogic/client/functionaltest/TestPOJOWithStrucQD.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ public void testQueryBuilderValueWithString() throws KeyManagementException, NoS
393393
assertEquals("Total search results resulted are ",6,actNode.asInt() );
394394
}
395395

396-
@Test(expected = ClassCastException.class)
396+
@Test
397397
public void testPOJOSearchWithRawXMLStructQD() {
398398
PojoRepository<Artifact,Long> products = client.newPojoRepository(Artifact.class, Long.class);
399399
PojoPage<Artifact> p;
@@ -444,7 +444,7 @@ public void testPOJOSearchWithRawXMLStructQD() {
444444
assertEquals("page number after the loop",1,p.getPageNumber());
445445
assertEquals("total no of pages",1,p.getTotalPages());
446446
}
447-
@Test(expected = ClassCastException.class)
447+
@Test
448448
public void testPOJOSearchWithRawJSONStructQD() {
449449
PojoRepository<Artifact,Long> products = client.newPojoRepository(Artifact.class, Long.class);
450450
PojoPage<Artifact> p;

0 commit comments

Comments
 (0)