chore(cleanup): remove dead Module stubs and unused imports; restore deferred files
Deletes 21 Module.kt scaffolding objects that were never wired into any DI registry. Removes unused imports across 8 production and 3 test files. Restores StageExecutor, CyclePolicyResolver, PolicyValidation, and ReplayContractTest — these are deferred features, not dead code.
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
package com.correx.testing.approvals
|
||||
|
||||
object Module
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.correx.testing.contracts.fixtures.projections
|
||||
|
||||
import com.correx.core.events.stores.EventStore
|
||||
import com.correx.core.events.types.EventId
|
||||
import com.correx.core.events.types.SessionId
|
||||
import com.correx.core.sessions.projections.replay.EventReplayer
|
||||
import com.correx.testing.fixtures.EventFixtures.newEvent
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import org.junit.jupiter.api.Assertions.assertEquals
|
||||
import org.junit.jupiter.api.Test
|
||||
|
||||
abstract class ReplayContractTest<S> {
|
||||
|
||||
protected abstract fun store(): EventStore
|
||||
|
||||
protected abstract fun replayer(
|
||||
store: EventStore
|
||||
): EventReplayer<S>
|
||||
|
||||
@Test
|
||||
fun `rebuild is deterministic`(): Unit = runBlocking {
|
||||
val store = store()
|
||||
|
||||
repeat(50) {
|
||||
store.append(newEvent(EventId("e$it"), SessionId("s1")))
|
||||
}
|
||||
|
||||
val replayer = replayer(store)
|
||||
|
||||
val state1 = replayer.rebuild(SessionId("s1"))
|
||||
val state2 = replayer.rebuild(SessionId("s1"))
|
||||
|
||||
assertEquals(state1, state2)
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
package com.correx.testing.deterministic
|
||||
|
||||
object Module
|
||||
@@ -1,3 +0,0 @@
|
||||
package com.correx.testing.integration
|
||||
|
||||
object Module
|
||||
@@ -1,3 +0,0 @@
|
||||
package com.correx.testing.projections
|
||||
|
||||
object Module
|
||||
@@ -1,3 +0,0 @@
|
||||
package com.correx.testing.replay
|
||||
|
||||
object Module
|
||||
Reference in New Issue
Block a user