akka/akka-core

Document or fix PF methods in classic Java testkit

Open

#27,562 opened on Aug 26, 2019

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Scala (13,277 stars) (3,547 forks)batch import
help wantedt:javat:testing

Description

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

Contributor guide

Document or fix PF methods in classic Java testkit · akka/akka-core#27562 | Good First Issue