feat(notice): 예약 공개 모델과 신규 컬럼을 추가한다

This commit is contained in:
2026-10-30 22:50:42 +09:00
parent e66512c055
commit 4f4c842ccf
3 changed files with 34 additions and 1 deletions
@@ -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)
}
}