@Test public void test220ModifyWorkItemProperties() throws Exception { OperationResult result = new OperationResult("test220ModifyWorkItemProperties"); List<ItemDelta<?, ?>> modifications = deltaFor(AccessCertificationCampaignType.class) .item(F_CASE, 1L, F_WORK_ITEM, 1L, F_OUTPUT).replace( new AbstractWorkItemOutputType() .outcome(SchemaConstants.MODEL_CERTIFICATION_OUTCOME_NOT_DECIDED) .comment("hi")) .asItemDeltas(); executeAndCheckModification(modifications, result, 0); checksCountsStandard(result); }
@Test public void test230ModifyAllLevels() throws Exception { OperationResult result = new OperationResult("test230ModifyAllLevels"); List<ItemDelta<?, ?>> modifications = deltaFor(AccessCertificationCampaignType.class) .item(F_NAME).replace(new PolyString("Campaign 2", "campaign 2")) .item(F_STATE).replace(IN_REMEDIATION) .item(F_CASE, 2, F_CURRENT_STAGE_OUTCOME).replace(SchemaConstants.MODEL_CERTIFICATION_OUTCOME_NO_RESPONSE) .item(F_CASE, 2, AccessCertificationCaseType.F_STAGE_NUMBER).replace(400) .item(F_CASE, 1, F_WORK_ITEM, 1, F_OUTPUT).replace( new AbstractWorkItemOutputType() .outcome(SchemaConstants.MODEL_CERTIFICATION_OUTCOME_NOT_DECIDED) .comment("low")) .asItemDeltas(); executeAndCheckModification(modifications, result, 1); checksCountsStandard(result); }
.replace(new AbstractWorkItemOutputType() .outcome(toUri(normalizeToNull(response))) .comment(comment)) .item(workItemPath.append(AccessCertificationWorkItemType.F_OUTPUT_CHANGE_TIMESTAMP)).replace(now) .item(workItemPath.append(AccessCertificationWorkItemType.F_PERFORMER_REF)).replace(responderRef)