我正在尝试重新配置我的mvn项目的测试,因为我们从9迁移到23进行测试。
我正在进行所有功能测试的错误消息:
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 12.642 s <<< FAILURE! - in org.<company>.crs.auth.authz.AuthorizationServiceTest
[ERROR] org.<company>.crs.auth.authz.AuthorizationServiceTest Time elapsed: 12.642 s <<< ERROR!
org.jboss.arquillian.container.spi.client.container.DeploymentException: Cannot deploy: <project>.war
Caused by: java.net.ConnectException: WFLYPRT0023: Could not connect to remote+http://127.0.0.1:9990. The connection timed out
我知道我的wildfly示例的启动时间会导致这种情况,所以我增加了startuptimeout属性。这是我的arquillian.xml:
<?xml version="1.0" encoding="UTF-8"?>
<arquillian xmlns="http://jboss.org/schema/arquillian"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/schema/arquillian
http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
<defaultProtocol type="Servlet 3.0" />
<container qualifier="jboss" default="true">
<configuration>
<property name="serverConfig">standalone.xml</property>
<property name="javaVmArguments">-Xmx1024m -XX:MaxPermSize=2048m -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8787</property>
<property name="outputToConsole">true</property>
<property name="startupTimeoutInSeconds">300</property>
</configuration>
</container>
</arquillian>
对于依赖关系管理,我有:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>1.4.1.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
想知道这里发生了什么?
暂无答案!
目前还没有任何答案,快来回答吧!