Skip to content

Commit

Permalink
Merge pull request #34 from rework-kr/Fix/32-readDailyAgenda
Browse files Browse the repository at this point in the history
FIX:: dailyagenda조회 dto id명 변경
  • Loading branch information
OneK-2 authored Jun 30, 2024
2 parents 4bf88ae + 9622432 commit 9268486
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ public static class ReadDailyAgendaResponseDto {
@AllArgsConstructor
@Builder
public static class ReadDetailDailyAgendaResponseDto {
private Long id;
private Long agendaId;
private String todo;
private Long pagingId;
private boolean state;

public ReadDetailDailyAgendaResponseDto(Long id, String todo, boolean state,Long pagingId) {
this.id = id;
public ReadDetailDailyAgendaResponseDto(Long agendaId, String todo, boolean state, Long pagingId) {
this.agendaId = agendaId;
this.todo = todo;
this.state = state;
this.pagingId=pagingId;
this.pagingId = pagingId;
}
}

Expand All @@ -65,7 +65,7 @@ public static class ReadDailyCompleteRateResponseDto {
@NoArgsConstructor
@AllArgsConstructor
@Builder
public static class ReadMonthlyCompleteRateResponseDto{
public static class ReadMonthlyCompleteRateResponseDto {
private int completeCount;
private int allCount;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ void readAgenda() throws Exception {
assertThat(resultList.isArray()).isTrue();
JsonNode firstAgenda = resultList.get(0);

Long id = firstAgenda.get("id").asLong();
Long agendaId = firstAgenda.get("agendaId").asLong();
String todo = firstAgenda.get("todo").asText();
boolean state = firstAgenda.get("state").asBoolean();

assertAll(
() -> assertThat(id).isNotNull(),
() -> assertThat(agendaId).isNotNull(),
() -> assertThat(todo).isEqualTo("오늘의 아젠다"),
() -> assertThat(state).isFalse()
);
Expand Down

0 comments on commit 9268486

Please sign in to comment.