CommandStreamChannel block the duplicate call
add GameCommandHandlerTest Create a CommandStreamChannelBuilder to inject maxCacheTime Add missing empty disabled test fix EventStreamInMemory.readAll
This commit is contained in:
10
src/test/kotlin/eventDemo/app/event/GameEventHandlerTest.kt
Normal file
10
src/test/kotlin/eventDemo/app/event/GameEventHandlerTest.kt
Normal file
@@ -0,0 +1,10 @@
|
||||
package eventDemo.app.event
|
||||
|
||||
import io.kotest.core.spec.style.FunSpec
|
||||
|
||||
class GameEventHandlerTest :
|
||||
FunSpec({
|
||||
xtest("handle event should publish the event to the stream") { }
|
||||
xtest("handle event should build the registered projection") { }
|
||||
xtest("handle event should publish the event to the bus") { }
|
||||
})
|
||||
@@ -0,0 +1,16 @@
|
||||
package eventDemo.app.event.projection
|
||||
|
||||
import io.kotest.core.spec.style.FunSpec
|
||||
|
||||
class GameStateRepositoryTest :
|
||||
FunSpec({
|
||||
xtest("GameStateRepository should build the projection when a new event occurs") { }
|
||||
|
||||
xtest("get should build the last version of the state") { }
|
||||
xtest("get should be concurrently secure") { }
|
||||
xtest("get should be concurrently secure") { }
|
||||
|
||||
xtest("getUntil should build the state until the event") { }
|
||||
xtest("call getUntil twice should get the state from the cache") { }
|
||||
xtest("getUntil should be concurrently secure") { }
|
||||
})
|
||||
@@ -0,0 +1,15 @@
|
||||
package eventDemo.app.event.projection
|
||||
|
||||
import io.kotest.core.spec.style.FunSpec
|
||||
|
||||
class GameStateTest :
|
||||
FunSpec({
|
||||
xtest("isReady") { }
|
||||
xtest("nextPlayer") { }
|
||||
xtest("nextPlayerTurn") { }
|
||||
xtest("playerDiffIndex") { }
|
||||
xtest("cardOnBoardIsForYou") { }
|
||||
xtest("playableCards") { }
|
||||
xtest("playerHasNoCardLeft") { }
|
||||
xtest("canBePlayThisCard") { }
|
||||
})
|
||||
Reference in New Issue
Block a user