akka/akka-core

TestFSMRef API example invalid

Open

#15,668 opened on 2014年8月14日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Scala (3,547 forks)batch import
1 - triagedhelp wantedt:docst:testing

Repository metrics

Stars
 (13,277 stars)
PR merge metrics
 (平均マージ 8d 19h) (30d で 10 merged PRs)

説明

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.

コントリビューターガイド