Search in sources :

Example 1 with PolicyOverrideUniquePolicyNotificationContent

use of com.synopsys.integration.alert.provider.blackduck.processor.model.PolicyOverrideUniquePolicyNotificationContent in project hub-alert by blackducksoftware.

the class PolicyOverrideNotificationMessageExtractorTest method createPolicyOverrideUniquePolicyNotificationContent.

private PolicyOverrideUniquePolicyNotificationContent createPolicyOverrideUniquePolicyNotificationContent() {
    String projectName = "Project";
    String projectVersionName = "ProjectVersionName";
    String projectVersion = "http://projectVersionUrl";
    String componentName = COMPONENT.getValue();
    String componentVersionName = COMPONENT_VERSION.getValue();
    String firstName = "firstName";
    String lastName = "lastName";
    String policy = "http://policyUrl";
    String bomComponentVersionPolicyStatus = "BomComponentVersionPolicyStatus";
    String bomComponent = "http://bomComponentUrl";
    PolicyInfo policyInfo = new PolicyInfo();
    policyInfo.setPolicyName(COMPONENT_POLICY.getPolicyName());
    return new PolicyOverrideUniquePolicyNotificationContent(projectName, projectVersionName, projectVersion, componentName, componentVersionName, firstName, lastName, policyInfo, policy, bomComponentVersionPolicyStatus, bomComponent);
}
Also used : PolicyInfo(com.synopsys.integration.blackduck.api.manual.component.PolicyInfo) PolicyOverrideUniquePolicyNotificationContent(com.synopsys.integration.alert.provider.blackduck.processor.model.PolicyOverrideUniquePolicyNotificationContent)

Aggregations

PolicyOverrideUniquePolicyNotificationContent (com.synopsys.integration.alert.provider.blackduck.processor.model.PolicyOverrideUniquePolicyNotificationContent)1 PolicyInfo (com.synopsys.integration.blackduck.api.manual.component.PolicyInfo)1