akka/akka-core

Document or fix PF methods in classic Java testkit

开放

#27,562 创建于 2019年8月26日

 (0 条评论) (0 个反应) (0 位负责人)Scala (3,547 个派生)batch import
help wantedt:javat:testing

仓库指标

星标
 (13,277 个星标)
PR 合并指标
 (平均合并 8天 19小时) (30 天内合并 10 个 PR)

描述

Looks as though quite a few of the methods in akka.testkit.javadsl.TestKit was just copy-pasted over from the Scala testkit, they take total functions but the docs talk about partial functions, they should either be updated to have docs that show how to use them or if they are not possible to use at all from Java (I'm unsure) they should be changed so that they can be used from Java or removed.

The methods are:

  • expectMsgPF
  • fishForSpecificMessage
  • receiveWhile

Additionally these should have the docs updated to not talk about partial functions:

  • ignoreMsg
  • fishForMessage

贡献者指南