Skip to content

Commit 6a76a36

Browse files
Ajit GeorgeAjit George
authored andcommitted
Changed test's expected exception as part of fix for #434
1 parent 2dfdcd2 commit 6a76a36

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,12 @@ public void validateSubObjReferencedbySuperClassvariableOne(SmallArtifactIdInSup
339339
* are different.
340340
*
341341
* Current results (10/13/2014) are:
342-
* java.lang.IllegalArgumentException: Invalid type id 'junk' (for id type 'Id.class'): no such class found
343-
* Issue 136 might solve this also.
342+
* com.marklogic.client.MarkLogicIOException: com.fasterxml.jackson.databind.exc.InvalidTypeIdException:
343+
* Could not resolve type id 'junk' into a subtype of [simple type, class com.marklogic.client.functionaltest.TestPOJOWithDocsStoredByOthers$SmallArtifactIdInSuper]:
344+
* no such class found
344345
*/
345346

346-
@Test(expected=IllegalArgumentException.class)
347+
@Test(expected=com.marklogic.client.MarkLogicIOException.class)
347348
public void testPOJOReadDocStoredWithInvalidContent() throws Exception {
348349

349350
String docId[] = { "com.marklogic.client.functionaltest.TestPOJOWithDocsStoredByOthers$SmallArtifactIdInSuper/SmallArtifactIdInSuper.json" };

0 commit comments

Comments
 (0)