Serialization of Actor now complete (using Java serialization of actor instance)
This commit is contained in:
parent
ac5b0882ea
commit
867fa8050d
5 changed files with 11 additions and 15 deletions
|
|
@ -22,10 +22,10 @@ class SerializableActorSpec extends
|
|||
(actor1 !! "hello").getOrElse("_") should equal("world")
|
||||
|
||||
val bytes = actor1.toBinary
|
||||
|
||||
// val actor2 = serializer.fromBinary(bytes, Some(classOf[JavaSerializableTestActor])).asInstanceOf[Actor]
|
||||
// (actor2 !! "hello").getOrElse("_") should equal("world")
|
||||
true should equal(true)
|
||||
val actor2 = ActorRef.fromBinaryToLocalActorRef(bytes)
|
||||
|
||||
actor2.start
|
||||
(actor2 !! "hello").getOrElse("_") should equal("world")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue