Source:
protected void testGetEventIdentificationType(LogEventRequestType request, String serviceName, Boolean isRequesting) { EventIdentificationType eventIdentificationType = request.getAuditMessage().getEventIdentification(); String eventActionCode; String eventIdCode; String eventIdDisplayName; if (isRequesting) { eventActionCode = getAuditTransforms().getServiceEventActionCodeRequestor(); eventIdCode = getAuditTransforms().getServiceEventIdCodeRequestor(); eventIdDisplayName = getAuditTransforms().getServiceEventDisplayRequestor(); } else { eventActionCode = getAuditTransforms().getServiceEventActionCodeRequestor(); eventIdCode = getAuditTransforms().getServiceEventIdCodeRequestor(); eventIdDisplayName = getAuditTransforms().getServiceEventDisplayRequestor(); } assertEquals("EventActionCode mismatch", eventActionCode, eventIdentificationType.getEventActionCode()); assertEquals("EventId.Code", eventIdCode, eventIdentificationType.getEventID().getCode()); assertEquals("EventId.DisplayName", eventIdDisplayName, eventIdentificationType.getEventID().getDisplayName()); assertEquals("EventOutcomeIndicator mismatch", AuditTransformsConstants.EVENT_OUTCOME_INDICATOR_SUCCESS .toString(), eventIdentificationType.getEventOutcomeIndicator().toString()); assertEquals("EventID.CodeSystemName mismatch", getAuditTransforms().getServiceEventCodeSystem(), eventIdentificationType.getEventID().getCodeSystemName()); assertEquals("EventTypeCode.Code mismatch", getAuditTransforms().getServiceEventTypeCode(), eventIdentificationType.getEventTypeCode().get(0).getCode()); assertEquals("EventTypeCode.CodeSystemName mismatch", getAuditTransforms().getServiceEventTypeCodeSystem(), eventIdentificationType.getEventTypeCode().get(0).getCodeSystemName()); assertEquals("EventTypeCode.DisplayName mismatch", getAuditTransforms().getServiceEventTypeCodeDisplayName(), eventIdentificationType.getEventTypeCode().get(0).getDisplayName()); }

Target:
protected void testGetEventIdentificationType(LogEventRequestType request, String serviceName, Boolean isRequesting) { EventIdentificationType eventIdentificationType = request.getAuditMessage().getEventIdentification(); String eventActionCode; String eventIdCode; String eventIdDisplayName; if (isRequesting) { eventActionCode = getAuditTransforms().getServiceEventActionCodeRequestor(); eventIdCode = getAuditTransforms().getServiceEventIdCodeRequestor(); eventIdDisplayName = getAuditTransforms().getServiceEventDisplayRequestor(); } else { eventActionCode = getAuditTransforms().getServiceEventActionCodeResponder(); eventIdCode = getAuditTransforms().getServiceEventIdCodeResponder(); eventIdDisplayName = getAuditTransforms().getServiceEventDisplayResponder(); } assertEquals("EventActionCode mismatch", eventActionCode, eventIdentificationType.getEventActionCode()); assertEquals("EventId.Code", eventIdCode, eventIdentificationType.getEventID().getCode()); assertEquals("EventId.DisplayName", eventIdDisplayName, eventIdentificationType.getEventID().getDisplayName()); assertEquals("EventOutcomeIndicator mismatch", AuditTransformsConstants.EVENT_OUTCOME_INDICATOR_SUCCESS .toString(), eventIdentificationType.getEventOutcomeIndicator().toString()); assertEquals("EventID.CodeSystemName mismatch", getAuditTransforms().getServiceEventCodeSystem(), eventIdentificationType.getEventID().getCodeSystemName()); assertEquals("EventTypeCode.Code mismatch", getAuditTransforms().getServiceEventTypeCode(), eventIdentificationType.getEventTypeCode().get(0).getCode()); assertEquals("EventTypeCode.CodeSystemName mismatch", getAuditTransforms().getServiceEventTypeCodeSystem(), eventIdentificationType.getEventTypeCode().get(0).getCodeSystemName()); assertEquals("EventTypeCode.DisplayName mismatch", getAuditTransforms().getServiceEventTypeCodeDisplayName(), eventIdentificationType.getEventTypeCode().get(0).getDisplayName()); }