Skip to content

Commit

Permalink
fix: Fix local failing test (#15716)
Browse files Browse the repository at this point in the history
  • Loading branch information
enricocolasante authored Nov 16, 2023
1 parent dfa49f1 commit 5b2831c
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 @@ -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;
Expand All @@ -70,6 +71,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 @@ -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;
Expand All @@ -71,6 +72,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 5b2831c

Please sign in to comment.