Skip to content

Commit 4799bdc

Browse files
Ajit GeorgeAjit George
authored andcommitted
Changed test methods to handle ResourceNotFoundException
1 parent 816c84b commit 4799bdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,8 @@ public void testPOJORepoDeleteWithNegativeId() {
471471
// Delete the object
472472
pojoReposProducts.delete(longId);
473473

474-
// Validate the artifact read back.
474+
// Validate the artifact read back. ResourceNotFoundException will be thrown.
475+
@SuppressWarnings("unused")
475476
Artifact artifact = pojoReposProducts.read(longId);
476477
}
477478

0 commit comments

Comments
 (0)