我有以下 arquillian.xml 文件用于指定 Glassfish 资源文件的位置:
<?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">
<container qualifier="glassfish-embedded" default="true">
<configuration>
<property name="resourcesXml">
src/test/resources-glassfish-embedded/glassfish-resources.xml
</property>
</configuration>
</container>
<!-- <glassfish:container>
<glassfish:instanceRoot>src/test/resources/glassfish</glassfish:instanceRoot>
<glassfish:bindPort>9090</glassfish:bindPort>
<glassfish:autoDelete>false</glassfish:autoDelete>
</glassfish:container>-->
当我尝试运行测试时,出现错误:
Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor
我对整个项目进行了一次更改,即删除上面显示的注释块,并且测试运行没有错误。
这种行为的原因是什么?这是一个应该报告的错误吗?