Skip to content

Commit

Permalink
[test] 도시 정보 조회 로직 수정에 따른 테스트 코드 수정
Browse files Browse the repository at this point in the history
related to: #144
  • Loading branch information
jo0oy committed Feb 3, 2024
1 parent c6a4f94 commit 5794445
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void getCityInfo() {
long cityId = city.getId();

// when
CityInfoResponseDto cityInfo = cityInfoReadService.getCityInfo(cityId);
CityInfoResponseDto cityInfo = cityInfoReadService.getCityInfo(cityId, null);

// then
assertThat(cityInfo.name()).isEqualTo("방콕");
Expand All @@ -115,7 +115,7 @@ void getCityInfo_cityNotFoundException() {
long cityId = 10000;

// when & then
assertThatThrownBy(() -> cityInfoReadService.getCityInfo(cityId))
assertThatThrownBy(() -> cityInfoReadService.getCityInfo(cityId, null))
.isInstanceOf(CityNotFoundException.class);
}

Expand Down

0 comments on commit 5794445

Please sign in to comment.