You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "He-Pin (via GitHub)" <gi...@apache.org> on 2026/06/27 22:06:46 UTC
[I] Implement DurableStateBehaviorTestKit [pekko]
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: notifications-unsubscribe@pekko.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org
Re: [I] Implement DurableStateBehaviorTestKit [pekko]
Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin closed issue #3240: Implement DurableStateBehaviorTestKit
URL: https://github.com/apache/pekko/issues/3240
--
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: notifications-unsubscribe@pekko.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org
Re: [I] Implement DurableStateBehaviorTestKit [pekko]
Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin commented on issue #3240:
URL: https://github.com/apache/pekko/issues/3240#issuecomment-4822981810
Closing as duplicate of #3236. #3236 has the fuller problem statement and reproduction details.
--
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: notifications-unsubscribe@pekko.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org