Skip to content

andriimartynov/how_to_unit_test_akka_parent_actors_when_using_play_injected_actor_support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to unit test akka parent actors when using play InjectedActorSupport.

Code sample:

"cut" must {
    "create new context and forward message" in {
      val id = "key"
      val message = Message(id)
      val cut = system.actorOf(Props(classOf[Parent], factory))
    
      cut ! message
    
      expectMsg(message)
      cut ! PoisonPill
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages