akka/akka-core

Javadsl TestKit/TestProbe

Aberta

#25.458 aberto em 10 de ago. de 2018

 (1 comentário) (1 reação) (0 responsável)Scala (3.547 forks)batch import
1 - triageddiscusshelp wantedt:testing

Métricas do repositório

Stars
 (13.277 estrelas)
Métricas de merge de PR
 (Mesclagem média 8d 19h) (10 fundiu PRs em 30d)

Description

In the scaladsl, TestProbe extends TestKit with probing features.

In the javadsl, TestKit itself can be used for probing.

For TestProbe you can optionally supply the name for the probing actor. This feature is not exposed for the javadsl TestKit. While only useful for debugging/logging this might still be nice to add.

Going a step further, we could even consider introducing a the TestProbe/TestKit distinction to the javadsl as well: it seems this could be as simple as introducing a class TestProbe extends TestKit containing the probing methods, and deprecating them on the parent TestKit.

Whichever we choose, we should update the text and code of testing.md in the reference documentation to reflect this: right now the Java version mentions TestProbe which arguably works but doesn't seem right anymore since scaladsl and javadsl have diverged now.

Guia do colaborador