Skip to content

Commit

Permalink
fix: tests wrongly backported
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaCambi77 committed Jan 4, 2024
1 parent b55bc9f commit 9859c63
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,13 @@ void getEventByIdRelationshipsNoAccessToRelationshipItemFrom() {
}

@Test
void getEventByIdContainsCreatedByAndUpdateByAndAssignedUserInDataValues() {
void getEventByIdContainsCreatedByAndUpdateByInDataValues() {

TrackedEntityInstance tei = trackedEntityInstance();
ProgramInstance programInstance = programInstance(tei);
ProgramStageInstance programStageInstance = programStageInstance(programInstance);
programStageInstance.setCreatedByUserInfo(UserInfoSnapshot.from(user));
programStageInstance.setLastUpdatedByUserInfo(UserInfoSnapshot.from(user));
programStageInstance.setAssignedUser(user);
EventDataValue eventDataValue = new EventDataValue();
eventDataValue.setValue("6");
DataElement dataElement = createDataElement('A');
Expand All @@ -249,7 +248,6 @@ void getEventByIdContainsCreatedByAndUpdateByAndAssignedUserInDataValues() {
assertEquals(orgUnit.getUid(), event.getString("orgUnit").string());
assertEquals(user.getUsername(), event.getString("createdBy.username").string());
assertEquals(user.getUsername(), event.getString("updatedBy.username").string());
assertEquals(user.getDisplayName(), event.getString("assignedUser.displayName").string());
assertFalse(event.getArray("dataValues").isEmpty());
assertEquals(
user.getUsername(),
Expand Down

0 comments on commit 9859c63

Please sign in to comment.