运行Arquillian测试的异常,但新的Eclipse工作区可以解决它

时间:2017-07-12 13:22:33

标签: java eclipse maven jboss-arquillian wildfly-10

我使用带有JUnit或TestNG的Wildfly 10运行带有Eclipse Neon和Eclipse Oxygen的Arquillian测试以下异常。

string html = string.Format("$ {0:n0}", 5620000)

我尝试在我的pom.xml中更改版本,但我不认为问题存在,因为测试运行了一段时间,使用了新的Eclipse工作区。一段时间后,测试再次崩溃,没有什么可以解决它,但创建另一个新的Eclipse工作区并从我的git存储库导入相同的代码。这是一种烦人的情况,因为我必须一次又一次地设置我的eclipse偏好。

1 个答案:

答案 0 :(得分:0)

因为我用过

<dependency>
    <groupId>org.wildfly.arquillian</groupId>
    <artifactId>wildfly-arquillian-container-managed</artifactId>
    <version>2.0.1.Final</version>          
    <scope>test</scope>
</dependency>

而不是

<dependency>
    <groupId>org.wildfly</groupId>
    <artifactId>wildfly-arquillian-container-managed</artifactId>
    <version>8.2.1.Final</version>
    <scope>test</scope>
</dependency>

此错误未再次发生。