Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX:: dailyagenda조회 dto id명 변경 #34

Merged
merged 2 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading