Search in sources :

Example 6 with ValidationNotificationTemplate

use of org.hisp.dhis.validation.notification.ValidationNotificationTemplate in project dhis2-core by dhis2.

the class ValidationRuleStoreTest method addValidationNotificationTemplate.

private ValidationNotificationTemplate addValidationNotificationTemplate(char uniqueCharacter, ValidationRule... rules) {
    ValidationNotificationTemplate template = createValidationNotificationTemplate("Template " + uniqueCharacter);
    asList(rules).forEach(template::addValidationRule);
    idObjectManager.save(template);
    return template;
}
Also used : ValidationNotificationTemplate(org.hisp.dhis.validation.notification.ValidationNotificationTemplate)

Aggregations

ValidationNotificationTemplate (org.hisp.dhis.validation.notification.ValidationNotificationTemplate)6 User (org.hisp.dhis.user.User)3 DhisConvenienceTest (org.hisp.dhis.DhisConvenienceTest)2 OrganisationUnit (org.hisp.dhis.organisationunit.OrganisationUnit)2 UserGroup (org.hisp.dhis.user.UserGroup)2 Test (org.junit.jupiter.api.Test)2 DhisSpringTest (org.hisp.dhis.DhisSpringTest)1 Test (org.junit.Test)1