akka/akka-core

Document or fix PF methods in classic Java testkit

Aperta

#27.562 aperta il 26 ago 2019

 (0 commenti) (0 reazioni) (0 assegnatari)Scala (3547 fork)batch import
help wantedt:javat:testing

Metriche repository

Star
 (13.277 stelle)
Metriche merge PR
 (Merge medio 8g 19h) (10 PR mergiate in 30 g)

Descrizione

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

Guida contributor