Skip to content

Commit

Permalink
fix test user assertHasNoMember
Browse files Browse the repository at this point in the history
  • Loading branch information
zubaira committed Oct 25, 2024
1 parent c310bee commit cd707b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

import static org.hisp.dhis.utils.Assertions.assertContains;
import static org.hisp.dhis.web.WebClientUtils.assertStatus;
import static org.hisp.dhis.webapi.controller.tracker.JsonAssertions.assertHasMember;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertTrue;

import org.hisp.dhis.jsontree.JsonArray;
Expand Down Expand Up @@ -349,7 +349,7 @@ void shouldNotSaveFollowUpAsFalseWhenNotConfigured() {
// Assert that the followUp is null (not saved as false)
JsonProgramStageQueryCriteria criteria = workingList.getProgramStageQueryCriteria();
assertFalse(criteria.isEmpty());
assertNull(criteria.getFollowUp(), "FollowUp should be null when not configured");
assertHasMember(criteria, "followUp");
}

private String createWorkingList(String workingListName) {
Expand Down

0 comments on commit cd707b2

Please sign in to comment.