我正在尝试按照本文档编写一个测试:
https://doc.akka.io/docs/akka/current/fsm.html#overview
这看起来像是扩展抽象JavaTest,我需要scalate依赖项,所以我在我的pom
中添加了以下内容:
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest</artifactId>
<version>1.2</version>
<scope>test</scope>
</dependency>
从更多的谷歌搜索中,我发现这个类只扩展了JUnitSuite,我可以在我的类中导入它,但我看不到扩展它
这是作品
import org.scalatest.junit.JUnitSuite;
但这并不
public class MyTest extends JunitSuite {}
如何获得 JunitSuite 课程?
你从2010年选择了ScalaTest的真正古老的版本,而你的Akka版本是最近的。
只需转到Maven Central,scalate并选择一些较新的版本,例如您可以尝试
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.12</artifactId>
<version>3.2.0-SNAP10</version>
<scope>test</scope>
</dependency>
只要确保始终如一地使用2.11
或2.12
即可。