epic-12: after epic audit and init commit

This commit is contained in:
2026-05-16 11:42:00 +04:00
commit c77277af0b
461 changed files with 28958 additions and 0 deletions
@@ -0,0 +1,24 @@
import com.correx.core.events.types.SessionId
import com.correx.core.sessions.DefaultSessionReducer
import com.correx.core.sessions.SessionProjector
import com.correx.core.sessions.SessionStatus
import com.correx.core.sessions.projections.replay.DefaultEventReplayer
import com.correx.infrastructure.persistence.InMemoryEventStore
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class SessionEmptyReplayTest {
@Test
fun `empty session returns initial state`() {
val store = InMemoryEventStore()
val replayer = DefaultEventReplayer(
store,
SessionProjector(DefaultSessionReducer())
)
val state = replayer.rebuild(SessionId("missing"))
assertEquals(SessionStatus.CREATED, state.status)
}
}