Uncaught error from default dispatcher causes fatal error with JavaTestKit

前端 未结 1 1259
清歌不尽
清歌不尽 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:

        <dependency>
            <groupId>com.typesafe.akka</groupId>
            <artifactId>akka-actor_2.10</artifactId>
            <version>2.3.12</version>
        </dependency>
        <dependency>
            <groupId>com.typesafe.akka</groupId>
            <artifactId>akka-testkit_2.10</artifactId>
            <version>2.3.12</version>
        </dependency>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-library</artifactId>
            <version>2.10.5</version>
        </dependency>
    
    0 讨论(0)
提交回复
热议问题