He-Pin opened a new issue, #3240:
URL: https://github.com/apache/pekko/issues/3240

   ### Description
   
   There is no `DurableStateBehaviorTestKit` analogous to 
`EventSourcedBehaviorTestKit` for testing `DurableStateBehavior` 
implementations.
   
   ### Evidence
   
   - `EventSourcedBehaviorTestKit` exists in 
`persistence-testkit/src/main/scala/org/apache/pekko/persistence/testkit/scaladsl/`
   - No equivalent `DurableStateBehaviorTestKit.scala` exists anywhere in the 
codebase
   - Stale comments in `DurableStateBehaviorImpl.scala` (lines 46, 51) and 
`Running.scala` (line 177) reference "Used by DurableStateBehaviorTestKit" — 
the consuming class was never built
   - The `GetPersistenceId` and `GetState` signals exist in 
`DurableStateBehaviorImpl` specifically for a test kit that doesn't exist
   
   ### Impact
   
   Users testing `DurableStateBehavior` must manually compose:
   - `PersistenceTestKitDurableStateStore` (in-memory store)
   - `BehaviorTestKit` (generic behavior testing)
   
   This is significantly more complex than using `EventSourcedBehaviorTestKit` 
for event-sourced behaviors.
   
   ### Suggested approach
   
   Create `DurableStateBehaviorTestKit.scala` in 
`persistence-testkit/src/main/scala/org/apache/pekko/persistence/testkit/scaladsl/`
 (with Java DSL sibling under `javadsl/`), mirroring the 
`EventSourcedBehaviorTestKit` API surface for durable state behaviors.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to