Uncaught error from default dispatcher causes fatal error with JavaTestKit

前端 未结 1 1266
清歌不尽
清歌不尽 2021-01-16 12:24

I\'m just getting my feet wet with Akka. I\'m trying to write a JUNit test using the JavaTestKit from this Maven dependency:

    
        &         


        
1条回答
  •  借酒劲吻你
    2021-01-16 12:48

    I figured out the issue. It had to do with an incompatible combination of the Akka and Testkit libraries (Scala 2.10 vs 2.11). The following Maven dependencies worked as expected:

        
            com.typesafe.akka
            akka-actor_2.10
            2.3.12
        
        
            com.typesafe.akka
            akka-testkit_2.10
            2.3.12
        
        
            org.scala-lang
            scala-library
            2.10.5
        
    

    0 讨论(0)
提交回复
热议问题