FSM: remove Ev extractor and move -> into companion object, see #1759

This commit is contained in:
Roland 2012-01-31 21:48:24 +01:00
parent b4d9486e63
commit 983a6d3ace
6 changed files with 56 additions and 54 deletions

View file

@ -89,10 +89,10 @@ class TestkitDocSpec extends AkkaSpec with DefaultTimeout with ImplicitSender {
val fsm = TestFSMRef(new Actor with FSM[Int, String] {
startWith(1, "")
when(1) {
case Ev("go") goto(2) using "go"
case Event("go", _) goto(2) using "go"
}
when(2) {
case Ev("back") goto(1) using "back"
case Event("back", _) goto(1) using "back"
}
})