有没有人成功地与Jboss embedded,Seam和Maven进行集成测试?

Aar*_*ers 6 maven-2 unit-testing seam embedded-jboss

一直在尝试使用我的seam项目和Jboss嵌入式容器进行集成测试但是没有取得多大成功.一直在做很多阅读,并一直在尝试这个JIRA中提到但没有运气.

Amy目前只是试图让'testproject-master-JBSEAM-2371.zip'项目正常运行但是我得到了以下异常

ERROR [org.jboss.embedded.DeploymentScanner] Failed to deploy
org.jboss.deployers.spi.DeploymentException: No deployer recognised the structure of vfsfile:/Users/aaron/Development/eclipse_workspaces/workspace_pink/testproject-web/target/test-classes/conf/jboss-service.xml
    at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:219)
    at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
Run Code Online (Sandbox Code Playgroud)

有没有人有幸使用maven而不是seam-gen项目进行Seam集成测试?

sal*_*sal 5

我放弃了嵌入式JBoss,并使用Maven JBoss插件进行切换,以便作为一个单独的进程部署到一个JBoss实例.不太理想,但是我们的代码与Maven之间存在很多冲突.您是否需要嵌入式版本?

你应该可以做这样的事情,在预集成测试阶段部署到JBoss,这样就可以运行集成测试.你仍然需要在maven之前启动jboss.不理想,但这对我有用.

       <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>jboss-maven-plugin</artifactId>
          <executions>
            <execution>
              <phase>pre-integration-test</phase>
              <goals>
                <goal>deploy</goal>
              </goals>
              <configuration>
                    <jbossHome>/opt/JBoss/current</jbossHome>
                    <port>8080</port>
              </configuration>
            </execution>
          </executions>
        </plugin>
Run Code Online (Sandbox Code Playgroud)