feat(notice): 예약 공개 모델과 신규 컬럼을 추가한다
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package kr.co.vividnext.sodalive.notice
|
||||
|
||||
import org.junit.jupiter.api.Assertions.assertEquals
|
||||
import org.junit.jupiter.api.Assertions.assertNull
|
||||
import org.junit.jupiter.api.DisplayName
|
||||
import org.junit.jupiter.api.Test
|
||||
|
||||
class ServiceNoticeTest {
|
||||
@Test
|
||||
@DisplayName("기존 엔티티 생성은 활성·즉시 공개 기본값과 미지정 등록 시각을 유지한다")
|
||||
fun shouldDefaultToImmediateActiveNotice() {
|
||||
val notice = ServiceNotice("공지", "본문")
|
||||
|
||||
assertEquals(true, notice.isActive)
|
||||
assertEquals(false, notice.isScheduled)
|
||||
assertNull(notice.publishAt)
|
||||
assertNull(notice.createdAt)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user