Skip to content

Commit

Permalink
test: add missed test
Browse files Browse the repository at this point in the history
  • Loading branch information
yhames committed Jul 26, 2024
1 parent fc1fbfa commit 66ccdf3
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -637,12 +637,12 @@ void finishAgendaFailedWithNoAwards() throws Exception {
Agenda agenda = agendaMockData.createAgenda(user.getIntraId(),
LocalDateTime.now().minusDays(10), true, AgendaStatus.CONFIRM);
List<AgendaTeam> agendaTeams = IntStream.range(0, teamSize)
.mapToObj(i -> agendaMockData.createAgendaTeam(agenda, "team" + i, AgendaTeamStatus.CONFIRM))
.collect(Collectors.toList());
.mapToObj(i -> agendaMockData.createAgendaTeam(agenda, "team" + i, AgendaTeamStatus.CONFIRM))
.collect(Collectors.toList());
List<AgendaTeamAward> awards = IntStream.range(0, awardSize)
.mapToObj(i -> AgendaTeamAward.builder().teamName(agendaTeams.get(i).getName())
.awardName("prize" + i).awardPriority(i + 1).build())
.collect(Collectors.toList());
.mapToObj(i -> AgendaTeamAward.builder().teamName(agendaTeams.get(i).getName())
.awardName("prize" + i).awardPriority(i + 1).build())
.collect(Collectors.toList());

// expected
mockMvc.perform(patch("/agenda/finish")
Expand Down Expand Up @@ -737,7 +737,7 @@ void finishAgendaFailedWithInvalidTeam() throws Exception {

// expected
mockMvc.perform(patch("/agenda/finish")
.param("agenda_key", UUID.randomUUID().toString())
.param("agenda_key", agenda.getAgendaKey().toString())
.header("Authorization", "Bearer " + accessToken)
.contentType(MediaType.APPLICATION_JSON)
.content(response))
Expand Down

0 comments on commit 66ccdf3

Please sign in to comment.