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

   ### Motivation
   
   Pekko 提供了 `EventSourcedBehaviorTestKit` 用于测试 EventSourced 行为,但缺少对应的 
`DurableStateBehaviorTestKit` 用于测试 DurableState 行为。代码中存在残留引用注释,但实际实现不存在。
   
   ### 当前代码行为
   
   全代码库中无 `DurableStateBehaviorTestKit.scala` 文件。仅在以下位置有残留引用注释:
   
   - 
`persistence-typed/src/main/scala/.../state/internal/DurableStateBehaviorImpl.scala:46,51`
   - `persistence-typed/src/main/scala/.../state/internal/Running.scala`
   
   这些注释引用了一个不存在的测试工具类。
   
   ### 预期行为
   
   提供 `DurableStateBehaviorTestKit`,功能类似 `EventSourcedBehaviorTestKit`:
   - 发送命令并检查结果状态
   - 验证持久化操作(状态存储)
   - 测试 signal 处理
   - 支持 snapshot(状态快照)测试
   
   ### 代码证据
   
   - `persistence-testkit/` 目录下无 `DurableStateBehaviorTestKit.scala`
   - 
`persistence-typed/src/main/scala/org/apache/pekko/persistence/typed/state/internal/DurableStateBehaviorImpl.scala:46,51`
 — 残留引用
   
   ### 复现方式
   
   尝试 import `DurableStateBehaviorTestKit` 或参考 `EventSourcedBehaviorTestKit` 的 
API 设计 DurableState 测试。
   
   ### 影响范围
   
   - 模块:`pekko-persistence-testkit`
   - 影响使用 DurableState API 的用户无法进行同步单元测试
   - 需要使用完整的 ActorSystem 进行集成测试,效率低


-- 
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