akka/akka-core

TestFSMRef API example invalid

Open

#15,668 opened on Aug 14, 2014

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Scala (13,277 stars) (3,547 forks)batch import
1 - triagedhelp wantedt:docst:testing

Description

TestFSMRef API documentation is incorrect -- the TestFSMRef creation is missing a closing parenthesis, it uses the Ev() method which was removed in 2.0, it lacks the declaration of an ActorSystem, lacks a value for akka.util.Timeout, and possibly additional issues.

The documentation on Testing (3.9) suffers from similar, but worse, issues (imports are often omitted, as well as declarations of the test classes). And there's no documentation on how to use both TestKit and TestActorRef or TestFSMRef at the same time, or if it's even possible.

The use of Ev() is also present in other sections of the API, such as FSM.

Contributor guide