Skip to content

Commit

Permalink
fix: Fix local failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
enricocolasante committed Nov 16, 2023
1 parent 9a55cc6 commit f33d767
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import org.hisp.dhis.tracker.preheat.TrackerPreheat;
import org.hisp.dhis.tracker.report.TrackerErrorCode;
import org.hisp.dhis.tracker.validation.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;
Expand All @@ -72,6 +73,8 @@ class EnrollmentAttributeValidationHookTest {

@InjectMocks private EnrollmentAttributeValidationHook hookToTest;

@Mock private TrackedAttributeValidationService teAttrService;

@Mock private Enrollment enrollment;

@Mock private Program program;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import org.hisp.dhis.tracker.report.TrackerErrorCode;
import org.hisp.dhis.tracker.util.Constant;
import org.hisp.dhis.tracker.validation.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;
Expand All @@ -74,6 +75,8 @@ class TrackedEntityAttributeValidationHookTest {

@InjectMocks private TrackedEntityAttributeValidationHook trackedEntityAttributeValidationHook;

@Mock private TrackedAttributeValidationService teAttrService;

@Mock private TrackerPreheat preheat;

@Mock private DhisConfigurationProvider dhisConfigurationProvider;
Expand Down

0 comments on commit f33d767

Please sign in to comment.