diff --git a/dhis-2/dhis-services/dhis-service-tracker/src/test/java/org/hisp/dhis/tracker/validation/hooks/EnrollmentAttributeValidationHookTest.java b/dhis-2/dhis-services/dhis-service-tracker/src/test/java/org/hisp/dhis/tracker/validation/hooks/EnrollmentAttributeValidationHookTest.java index d560fd317a71..cb52829b2d6d 100644 --- a/dhis-2/dhis-services/dhis-service-tracker/src/test/java/org/hisp/dhis/tracker/validation/hooks/EnrollmentAttributeValidationHookTest.java +++ b/dhis-2/dhis-services/dhis-service-tracker/src/test/java/org/hisp/dhis/tracker/validation/hooks/EnrollmentAttributeValidationHookTest.java @@ -52,6 +52,7 @@ import org.hisp.dhis.tracker.preheat.TrackerPreheat; import org.hisp.dhis.tracker.report.TrackerErrorCode; import org.hisp.dhis.tracker.report.ValidationErrorReporter; +import org.hisp.dhis.tracker.validation.service.attribute.TrackedAttributeValidationService; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @@ -70,6 +71,8 @@ class EnrollmentAttributeValidationHookTest { @InjectMocks private EnrollmentAttributeValidationHook hookToTest; + @Mock private TrackedAttributeValidationService teAttrService; + @Mock private Enrollment enrollment; @Mock private Program program; diff --git a/dhis-2/dhis-services/dhis-service-tracker/src/test/java/org/hisp/dhis/tracker/validation/hooks/TrackedEntityAttributeValidationHookTest.java b/dhis-2/dhis-services/dhis-service-tracker/src/test/java/org/hisp/dhis/tracker/validation/hooks/TrackedEntityAttributeValidationHookTest.java index 5db9a74b4ff7..b2e8920c9970 100644 --- a/dhis-2/dhis-services/dhis-service-tracker/src/test/java/org/hisp/dhis/tracker/validation/hooks/TrackedEntityAttributeValidationHookTest.java +++ b/dhis-2/dhis-services/dhis-service-tracker/src/test/java/org/hisp/dhis/tracker/validation/hooks/TrackedEntityAttributeValidationHookTest.java @@ -53,6 +53,7 @@ import org.hisp.dhis.tracker.report.TrackerErrorCode; import org.hisp.dhis.tracker.report.ValidationErrorReporter; import org.hisp.dhis.tracker.util.Constant; +import org.hisp.dhis.tracker.validation.service.attribute.TrackedAttributeValidationService; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @@ -71,6 +72,8 @@ class TrackedEntityAttributeValidationHookTest { @InjectMocks private TrackedEntityAttributeValidationHook trackedEntityAttributeValidationHook; + @Mock private TrackedAttributeValidationService teAttrService; + @Mock private TrackerPreheat preheat; @Mock private DhisConfigurationProvider dhisConfigurationProvider;