Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zubaira committed Jan 20, 2025
1 parent 49359f7 commit c62cbe7
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
import org.hisp.dhis.sms.command.hibernate.SMSCommandStore;
import org.hisp.dhis.test.integration.PostgresIntegrationTestBase;
import org.hisp.dhis.trackedentity.TrackedEntity;
import org.hisp.dhis.trackedentity.TrackedEntityType;
import org.hisp.dhis.util.DateUtils;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
Expand Down Expand Up @@ -1385,7 +1386,9 @@ void dataApprovalMergeCocDiscardTest() throws ConflictException {
"Event attributeOptionCombo references to source COCs are replaced with target COC when using LAST_UPDATED, source COCs are not deleted")
void eventMergeTest() throws ConflictException {
// given
TrackedEntity trackedEntity = createTrackedEntity(ou1);
TrackedEntityType entityType = createTrackedEntityType('T');
manager.save(entityType);
TrackedEntity trackedEntity = createTrackedEntity(ou1, entityType);
manager.save(trackedEntity);
Enrollment enrollment = createEnrollment(program, trackedEntity, ou1);
manager.save(enrollment);
Expand Down Expand Up @@ -1437,7 +1440,9 @@ void eventMergeTest() throws ConflictException {
"Event eventDataValues references to source COCs are deleted using DISCARD, source COCs are deleted")
void eventMergeSourcesDeletedTest() throws ConflictException {
// given
TrackedEntity trackedEntity = createTrackedEntity(ou1);
TrackedEntityType entityType = createTrackedEntityType('T');
manager.save(entityType);
TrackedEntity trackedEntity = createTrackedEntity(ou1, entityType);
manager.save(trackedEntity);
Enrollment enrollment = createEnrollment(program, trackedEntity, ou1);
manager.save(enrollment);
Expand Down

0 comments on commit c62cbe7

Please sign in to comment.