assertEquals(2, arr.getConnections().size());
}
private void validate(List<AuditSuppressCriteria> criteriaList) {
assertEquals(1, criteriaList.size());
AuditSuppressCriteria criteria = criteriaList.get(0);
assertEquals("AuditSuppressCriteria", criteria.getCommonName());
EventID[] eventIDs = criteria.getEventIDs();
assertEquals(1, eventIDs.length);
assertEquals(AuditMessages.EventID.ApplicationActivity.getCode(),
eventIDs[0].getCode());
assertEquals(AuditMessages.EventID.ApplicationActivity.getCodeSystemName(),
eventIDs[0].getCodeSystemName());
assertEquals(AuditMessages.EventID.ApplicationActivity.getDisplayName(),
eventIDs[0].getDisplayName());
String[] eventActionCodes = criteria.getEventActionCodes();
assertEquals(1, eventActionCodes.length);
assertEquals(AuditMessages.EventActionCode.Execute, eventActionCodes[0]);
EventTypeCode[] eventTypeCodes = criteria.getEventTypeCodes();
assertEquals(2, eventTypeCodes.length);
String[] eventOutcomeIndicators = criteria.getEventOutcomeIndicators();
assertEquals(1, eventOutcomeIndicators.length);
assertEquals(AuditMessages.EventOutcomeIndicator.Success, eventOutcomeIndicators[0]);
String[] userIDs = criteria.getUserIDs();
assertEquals(1, userIDs.length);
assertEquals("UserID", userIDs[0]);
String[] altUserIDs = criteria.getAlternativeUserIDs();
assertEquals(1, altUserIDs.length);
assertEquals("AltUserID", altUserIDs[0]);
String[] networkAccessPointIDs = criteria.getNetworkAccessPointIDs();
assertEquals(1, networkAccessPointIDs.length);
assertEquals("127.0.0.1", networkAccessPointIDs[0]);
RoleIDCode[] userRoleIDCodes = criteria.getUserRoleIDCodes();
assertEquals(1, userRoleIDCodes.length);
assertEquals(AuditMessages.RoleIDCode.ApplicationLauncher.getCode(),
userRoleIDCodes[0].getCode());
assertEquals(AuditMessages.RoleIDCode.ApplicationLauncher.getCodeSystemName(),
userRoleIDCodes[0].getCodeSystemName());
assertEquals(AuditMessages.RoleIDCode.ApplicationLauncher.getDisplayName(),
userRoleIDCodes[0].getDisplayName());
assertEquals(true, criteria.getUserIsRequestor());
}