해당 게시글은 개인 프로젝트인 "광고 관리 플랫폼 대행사 센터 제작" 중
#93 "광고 관리(소재) 페이지 수정 및 통계 기능 구현", #94 "테스트 리팩토링", #95 "들여쓰기 정리" 이슈를 다루고 있습니다.
void givenNothing_whenRequesting_thenReturnsUpdatedAgentGroupPage() throws Exception {
// Given
Long agentGroupId = 1L;
AgentGroupDto dto = createAgentGroupDto();
given(agentGroupService.getAgentGroup(agentGroupId)).willReturn(dto);
// When & Then
......
// fixture
private AgentGroupDto createAgentGroupDto() {
return AgentGroupDto.of(
createAgencyDto(),
1L,
"테스트용",
LocalDateTime.now(),
"테스트",
LocalDateTime.now(),
"테스트"
);
}
void givenNothing_whenRequesting_thenReturnsUpdatedAgentGroupPage() throws Exception {
// Given
Long agentGroupId = 1L;
AgentGroupDto dto = Fixture.createAgentGroupDto();
given(agentGroupService.getAgentGroup(agentGroupId)).willReturn(dto);
// When & Then