Skip to content

Commit

Permalink
feat/VIC-1124_Add_consultant_id_to_response
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanalicic committed Jul 22, 2022
1 parent ee85386 commit 0bbed3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public GroupSessionResponseDTO toGroupSessionResponse(
return response;
}
var consultant = GroupSessionConsultantDTO.builder()
.id(sessionConsultant.getConsultantId())
.username(sessionConsultant.getUsername())
.displayName(sessionConsultant.getDisplayName())
.isAbsent(sessionConsultant.isAbsent())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ void getSessionsForGroupOrFeedbackGroupIdsShouldContainConsultantOfUserSession()
.andExpect(status().isOk())
.andExpect(jsonPath("sessions[0].session.groupId", is("YWKxhFX5K2HPpsFbs")))
.andExpect(jsonPath("sessions[0].consultant.username", is("u25main")))
.andExpect(jsonPath("sessions[0].consultant.id").doesNotExist())
.andExpect(jsonPath("sessions[0].consultant.id", is("bad14912-cf9f-4c16-9d0e-fe8ede9b60dc")))
.andExpect(jsonPath("sessions[0].consultant.firstName").doesNotExist())
.andExpect(jsonPath("sessions[0].consultant.lastName").doesNotExist())
.andExpect(jsonPath("sessions[0].agency", is(notNullValue())))
Expand Down Expand Up @@ -717,7 +717,7 @@ void getSessionForIdShouldFindSessionsBySessionId()
.andExpect(jsonPath("sessions[0].session.id", is(900)))
.andExpect(jsonPath("sessions[0].session.groupId", is("YWKxhFX5K2HPpsFbs")))
.andExpect(jsonPath("sessions[0].consultant.username", is("u25main")))
.andExpect(jsonPath("sessions[0].consultant.id").doesNotExist())
.andExpect(jsonPath("sessions[0].consultant.id", is("bad14912-cf9f-4c16-9d0e-fe8ede9b60dc")))
.andExpect(jsonPath("sessions[0].consultant.firstName").doesNotExist())
.andExpect(jsonPath("sessions[0].consultant.lastName").doesNotExist())
.andExpect(jsonPath("sessions[0].agency", is(notNullValue())))
Expand Down

0 comments on commit 0bbed3e

Please sign in to comment.