new factory for transactional state
This commit is contained in:
parent
93f712effe
commit
8ff45daddc
5 changed files with 361 additions and 238 deletions
|
|
@ -14,7 +14,6 @@ class ActorTest {
|
|||
class TestActor extends Actor {
|
||||
def receive: PartialFunction[Any, Unit] = {
|
||||
case "Hello" =>
|
||||
println("Hello")
|
||||
reply("World")
|
||||
case "Failure" =>
|
||||
throw new RuntimeException("expected")
|
||||
|
|
@ -44,8 +43,8 @@ class ActorTest {
|
|||
implicit val timeout = 5000L
|
||||
val actor = new TestActor
|
||||
actor.start
|
||||
val result = actor !? "Hello"
|
||||
assertEquals("World", result.asInstanceOf[String])
|
||||
val result: String = actor !? "Hello"
|
||||
assertEquals("World", result)
|
||||
actor.stop
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue