-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2217648
commit bc2092a
Showing
1 changed file
with
6 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,24 +203,17 @@ class GameServiceTest { | |
.startPosition(잠실역_교보문고_좌표) | ||
.build(); | ||
|
||
final GameResult gameResult1 = gameResultBuilder.init() | ||
.resultType(SUCCESS) | ||
.game(game1) | ||
.build(); | ||
|
||
final GameResult gameResult2 = gameResultBuilder.init() | ||
.resultType(FAIL) | ||
.game(game2) | ||
.build(); | ||
final int expectedTotalDistance = (int) 잠실_루터회관_정문_좌표.calculateDistance(잠실역_교보문고_좌표); | ||
|
||
// when | ||
final Statistic expected = gameService.findStatistic(new PlayerRequest(player.getId())); | ||
final Statistic actual = gameService.findStatistic(new PlayerRequest(player.getId())); | ||
|
||
// then | ||
assertSoftly(softAssertions -> { | ||
Check failure on line 212 in backend/src/test/java/com/now/naaga/game/application/GameServiceTest.java GitHub Actions / JUnit Test ReportGameServiceTest.플레이어의 통계를 조회한다
Raw output
|
||
softAssertions.assertThat(expected.getSuccessGameCount()).isEqualTo(1); | ||
softAssertions.assertThat(expected.getFailGameCount()).isEqualTo(1); | ||
softAssertions.assertThat(expected.getGameCount()).isEqualTo(2); | ||
softAssertions.assertThat(actual.getSuccessGameCount()).isEqualTo(1); | ||
softAssertions.assertThat(actual.getFailGameCount()).isEqualTo(1); | ||
softAssertions.assertThat(actual.getGameCount()).isEqualTo(2); | ||
softAssertions.assertThat(actual.getTotalDistance()).isEqualTo(expectedTotalDistance); | ||
}); | ||
} | ||
|
||
|