-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: (BRD-79) 시간대 규칙 통일(TimeRule.ZONE_ID) (#51)
* Feature: (BRD-79) 시간대 규칙 TimeRule.ZONE_ID 추가 * Refactor: (BRD-79) 분산되어 있던 시간대 규칙 코드를 TimeRule 의존으로 변경
- Loading branch information
Showing
10 changed files
with
46 additions
and
26 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
board-system-core/src/main/kotlin/com/ttasjwi/board/system/core/time/TimeRule.kt
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.ttasjwi.board.system.core.time | ||
|
||
import java.time.ZoneId | ||
|
||
object TimeRule { | ||
val ZONE_ID: ZoneId = ZoneId.of("Asia/Seoul") | ||
} |
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
16 changes: 16 additions & 0 deletions
16
board-system-core/src/test/kotlin/com/ttasjwi/board/system/core/time/TimeRuleTest.kt
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.ttasjwi.board.system.core.time | ||
|
||
import org.assertj.core.api.Assertions.assertThat | ||
import org.junit.jupiter.api.DisplayName | ||
import org.junit.jupiter.api.Test | ||
import java.time.ZoneId | ||
|
||
@DisplayName("TimeRule: 우리 서비스의 시간대 규칙") | ||
class TimeRuleTest { | ||
|
||
@Test | ||
@DisplayName("우리 서비스의 기준 시간대는 서울 시간을 기준으로 삼는다.") | ||
fun testZoneId() { | ||
assertThat(TimeRule.ZONE_ID).isEqualTo(ZoneId.of("Asia/Seoul")) | ||
} | ||
} |
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
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
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
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
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
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
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