Skip to content

Commit

Permalink
rename: 테스트하려는 결과의 변수명을 actual로 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonyj1022 committed Sep 30, 2023
1 parent 6cd0b64 commit cb2a7c5
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class DeviceTokenServiceTest extends DeviceTokenServiceFixture {

// then
final Optional<DeviceToken> deviceTokenResult = deviceTokenRepository.findByUserId(디바이스_토큰이_있는_사용자.getId());
assertThat(deviceTokenResult.get().getDeviceToken()).isEqualTo(갱신된_디바이스_토큰_값);
final String actual = deviceTokenResult.get().getDeviceToken();

assertThat(actual).isEqualTo(갱신된_디바이스_토큰_값);
}

@Test
Expand All @@ -52,7 +54,9 @@ class DeviceTokenServiceTest extends DeviceTokenServiceFixture {

// then
final Optional<DeviceToken> userDeviceToken = deviceTokenRepository.findByUserId(디바이스_토큰이_있는_사용자.getId());
assertThat(userDeviceToken.get().getDeviceToken()).isEqualTo(사용_중인_디바이스_토큰_값);
final String actual = userDeviceToken.get().getDeviceToken();

assertThat(actual).isEqualTo(사용_중인_디바이스_토큰_값);
}

@Test
Expand Down

0 comments on commit cb2a7c5

Please sign in to comment.