Search in sources :

Example 1 with TrackedAttributeValidationService

use of org.hisp.dhis.tracker.validation.service.attribute.TrackedAttributeValidationService in project dhis2-core by dhis2.

the class TrackedAttributeValidationServiceTest method setUp.

@BeforeEach
public void setUp() {
    trackedEntityAttributeService = new TrackedAttributeValidationService(userService, fileResourceService);
    tea = new TrackedEntityAttribute();
    tea.setUid("TeaUid12345");
    tea.setUnique(true);
    tea.setValueType(ValueType.TEXT);
    tea.setOrgunitScope(false);
}
Also used : TrackedAttributeValidationService(org.hisp.dhis.tracker.validation.service.attribute.TrackedAttributeValidationService) TrackedEntityAttribute(org.hisp.dhis.trackedentity.TrackedEntityAttribute) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

TrackedEntityAttribute (org.hisp.dhis.trackedentity.TrackedEntityAttribute)1 TrackedAttributeValidationService (org.hisp.dhis.tracker.validation.service.attribute.TrackedAttributeValidationService)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1