/** * test exists method * * @param expected if false, test is successful if the Order Document does NOT exists */ public void testExists(boolean expected) { TExists_Return[] Doc_exists_out = orderDocService.exists(Docs); for (TExists_Return exist : Doc_exists_out) { assertNoError(exist.getError()); assertEquals("exists?", expected, exist.getExists()); } }
private void cleanupObjects() { // delete the test order documents if they exist TExists_Return[] Doc_exists_out = orderDocService.exists(Docs); for (TExists_Return exist : Doc_exists_out) { if (exist.getExists()) { TDelete_Return[] Doc_delete_out = orderDocService.delete(new String[] {exist.getPath()}); assertEquals("delete result set", 1, Doc_delete_out.length); assertNoError(Doc_delete_out[0].getError()); } } }