-
0 votesanswersviews
无法部署到JBoss 7.1
在将应用程序服务器从Glassfish更改为JBoss 7.1之后,我正在尝试运行一些集成测试 . 但是它无法部署 . 它抛出这个错误然后停止 . 20:35:31,252 INFO [org.jboss.as.server](management-handler-thread-9)JBAS015870:部署部署“9965db9f-a190-4bca-b7a9-c7df3ea6b1d7.war”... -
1 votesanswersviews
Arquillian是否过早取消部署测试包?
我已经用Arquillian进行了测试,但是当我试图到达那里时它只给了我404 . 我在日志中发现了什么: 3:04:30,320 INFO [org.wildfly.extension.undertow] (MSC service thread 1-11) JBAS017534: Registered web context: /d98c2952-075b-42ac-bf5b-e5694057... -
1 votesanswersviews
Arquillian测试中不存在Wildfly Swarm SecurityFraction
我有非常简单的Arquillian测试来检查CDI是否正常工作: import javax.enterprise.inject.spi.CDI; import javax.inject.Inject; import org.jboss.arquillian.junit.Arquillian; import org.junit.Test; import org.junit.runner.RunWit... -
1 votesanswersviews
用于Wildfly Swarm和Arquillian测试的ClassCastException org.dom4j.DocumentFactory
我在Wildfly Swarm中使用Arquillian运行EJB测试时遇到问题,它与Hibernate和这个问题有关:wildfly 10: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory 错误: ERROR [stderr] (main) Ca... -
0 votesanswersviews
安全管理器下的Arquillian测试抛出NoSuchElementException
我有一个WildFly 10.1环境,我使用以下配置启动容器: <container qualifier="container.active-1" mode="suite" default="true"> <configuration> <property name="jbo... -
0 votesanswersviews
Arquillian与托管wildfly-14.0.1.Final,注入测试null
我正在尝试使用arquillian和wildfly-14.0.1.Final作为托管容器进行集成测试 . 一切正常,容器启动并部署存档 . 不幸的是,Test-Class中的注入不起作用 . 测试类中的每个注入点都为空 . 我已经尝试在单个会话bean( @Singleton @Startup )上的容器中注入,一切正常 . 所以我认为像beans.xml这样的常见嫌疑人不是问题所在 . 问题从通... -
2 votesanswersviews
我如何告诉Graphene加载我的@Page?
TL;DR: 如何告诉Graphene为@ Page注入的对象加载哪个(相对)URL? 我正在尝试使用“最先进的”设置我的网络前端集成测试,即Arquillian,Arquillian Drone,Selenium 2和Graphene 2的组合 . 使用Arquillian,Drone和普通Selenium WebDriver(即没有任何Graphene特定的东西),测试可能如下所示: imp... -
10 votesanswersviews
与Arquillian和Wildfly的集成测试
我尝试与Arquillian和Wildfly一起运行集成测试 . 我在Maven中的依赖关系如下: <dependency> <groupId>org.jboss.arquillian</groupId> <artifactId>arquillian-bom</artifactId> <version>1.1.2.... -
3 votesanswersviews
Arquillian with Wildfly 8.0.0.Final Managed not working
我已经和jboss-as-7.1.1.Final一起使用了arquillian一段时间了 . 我想开始使用wildfly 8.0.0.Final,但我无法让它工作 . 我只更改了我的pom.xml和arquillian.xml . 这是我的“属性”: <properties> <project.build.sourceEncoding>UTF-8</proje... -
0 votesanswersviews
Wildfly Spring Arquillian - WAR无条件部署和取消部署
我正在开发一个项目,我正在尝试使用Arquillian进行集成测试 . 我们的项目使用Spring 4,Hibernate,我们正在尝试将它与Arquillian集成 . 我无法找到一个合适的示例项目来解释在此链接中使用Arquillium Spring Extension https://github.com/arquillian/arquillian-showcase/tree/master/... -
1 votesanswersviews
Arquillian Injected EntityManager为空
使用Wildfly 10和Arquillian,注入EntityManager始终返回 NULL . 这是为什么? 这是我的测试类: @RunWith(Arquillian.class) public class XXXDAOTest { @Deployment public static JavaArchive createDeployment() { return ShrinkW... -
0 votesanswersviews
Arquillian依赖关系管理:未找到ExecutorService
我在我的Wildfly项目中使用Arquillian,但是当我运行第一个测试时遇到以下问题: Caused by: java.lang.ClassNotFoundException: org.jboss.arquillian.core.api.threading.ExecutorService at java.net.URLClassLoader$1.run(URLClassLoader.java... -
2 votesanswersviews
对Wildfly的Arquillian远程测试
我是Arquillian的新手,我在远程测试方面遇到了一些问题 . 我正在尝试使用Arquillian对Wildfly进行远程测试 . 我的Wildfly实例可以通过端口8180到达,但是它运行在内部端口8080上的本地虚拟机上 . 我已经设置了Vagrant和VirtualBox的端口转发 当我从eclipse运行我的测试时,我收到以下错误: java.lang.IllegalStateExce... -
1 votesanswersviews
在Arquillian测试中注入@Stateless EJB
运行Arquillian测试时出现一个奇怪的问题 . 如果我尝试使用带@Stateless注释的EJB,我会收到此错误: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [MyEjbRemote] with qualifiers [@Default] at in... -
0 votesanswersviews
Arquillian与Wildfly
我尝试使用Arquillian和WildFly 8.1.0 Final版本进行测试 . 服务器,即测试容器启动,bean被加载,但测试(即使是最简单的)也没有通过 . 这是控制台日志: ERROR [io.undertow.request] UT005023: Exception handling request to /test/ArquillianServletRunner: java.lan... -
0 votesanswersviews
Arquillian测试仅在将其放置在根包中时才起作用
我有一个简单的Wildfly Swarm应用程序,它通过CDI将JAX-RS endpoints 和Service类注入 endpoints . 我为我的应用程序编写了一个集成测试,它看起来像这样: @RunWith(Arquillian.class) @DefaultDeployment(type = WAR) public class MyEndpointIT { @Arquill... -
3 votesanswersviews
如何使用Arquillian从单独的Maven模块测试WAR的内容
我已经在网络上找到了一些知识点,但是无法将它们整合在一起来解决这个具体案例 . This answer似乎是一个非常好的开始,但它专门处理EAR依赖 . 我的(简化)maven项目结构如下: parent |__domain (a jar) |__domain-it (integration tests for the domain module) |__web (... -
4 votesanswersviews
Arquillian测试覆盖率
我希望看到 test coverage for IT tests 与Arquillian一起运行 . 我遇到了这个扩展:https://github.com/arquillian/arquillian-extension-jacoco 我不明白为什么 CoverageBean 测试的 CoverageBean 类在报告中不可见 . 多数民众赞成我所期待的 .有人可以提供示例项目,在Arquilli... -
-1 votesanswersviews
在多模块项目中使用Arquillian进行Jacoco代码覆盖
有人用Arquillian使用Jacoco代码覆盖吗?我的项目是一个多模块maven项目,目前它没有显示Arquillian测试的代码覆盖率 . 除了pom更改之外,Arquillian.xml中是否还有其他更改? 我的pom xml中的构建和插件部分如下所示 <build> <plugins> <!-- start Jacoco --> ... -
0 votesanswersviews
Arquillian jacoco IT报道
我配置了2个项目使用最后一个jacoco版本0.7.8和最后一个Arquillian jacoco扩展(1.0.09Alpha)它就像一个魅力(对于jenkins和声纳6.2)!但是我有一个更大的项目,当我只启动Arquillian IT测试我的战争存档被创建并且所有类和测试都可以,当我使用IT代码覆盖运行相同的测试时,arquillian存档中不包含任何类并且具有此错误: org.jboss.s... -
1 votesanswersviews
使用JaCoCo获取Arquillians代码覆盖率
我有一个Maven版本,可以在Wildfly上运行Arquillian测试 . 我想要做的是运行JaCoCo,以便我获得测试覆盖率 . 我对我工作的Arquillian设置做了什么:我通过以下方式更改了父亲的pom.xml: <properties> <sonar.java.coveragePlugin>jacoco</sonar.java.coverageP... -
0 votesanswersviews
EJB使用Wildfly-Arquillian-Gradle-Jacoco的代码覆盖率
我正在尝试为我的项目设置代码覆盖率 . 我使用Wildfly 8.2服务器,gradle作为构建工具,使用JUnit和Arquillian进行测试 . 在gradle中,我已经配置了jacoco插件来生成代码覆盖率 . 我有一个名为 jacocoTestReport 的任务,它允许我生成一个HTML报告 . Something about running the tests: 我正在开发一个多模块... -
4 votesanswersviews
无法使用Arquillian和WildFly在JPA集成测试中注入EntityManager
我正在尝试使用以下堆栈进行集成测试: App server: Embedded WildFly CDI container: Weld Database: In-memory H2 ORM: Hibernate/JPA Platform: Java 8 OS: Mac OS X 10.10 我已经使用Arquillian设置了基本的集成测试(完成了here)并且我能够注入依赖项,但注入 Enti... -
1 votesanswersviews
Arquillian与WildFly 10的集成
任何人都可以指导我如何使用Arquillian和WildFly 10.我最近将我的应用程序从JBoss 7迁移到WildFly 10.Arquillian曾经使用JBoss 7,但相同的配置不适用于WildFly 10 . 我现在能够集成,但是我的EJB与JNDI名称为“java:global / xyz / xyzEMFactor”失败并出现以下错误: 引起:java.lang.Excepti... -
0 votesanswersviews
db4o - DatabaseClosedException
我试图通过arquillian测试用例存储db4o实体,并得到DatabaseClosedException: 测试集:com.walterjwhite.address.api.datastore.TestAddressDatastore 测试运行:1,失败:0,错误:1,跳过:0,时间过去:2.149秒<<<失败! test_save(com.walterjwhite.add... -
1 votesanswersviews
Arquillian glassfish管理的测试缺席代码属性错误
我正在尝试通过Arquillian Getting Started指南 . 只要我使用arquillian-weld-ee嵌入式容器,一切正常 . 但是,当我尝试切换到glassfish管理时,我收到此错误: Tests in error: org.arquillian.example.GreeterTest: Absent Code attribute in method that is not... -
1 votesanswersviews
在针对远程Wildfly-8.0.0运行arquillian时的NPE
昨天,当我试图将我的集成测试从 embedded GF 4 移动到 remote Wildfly 8 时,我对每个针对远程Wildfly 8实例的arquillian测试运行都感到奇怪 NullPointerException . 相同的集成测试在嵌入式Glassfish 4.0上运行得很好 . org.jboss.arquillian.container.spi.client.containe... -
1 votesanswersviews
如何使用Arquillian在应用程序服务器容器中测试Spring?
我们正在尝试使用TestNG框架在嵌入式tomcat容器上运行基于Spring的代码的集成测试 . 我们试图使用现有的Arquillian Spring Extension而没有取得多大成功 . 也许有些缺少配置 . 我们已经关注instructions from this post 我们的pom包含以下依赖项: <dependency> <groupId>... -
7 votesanswersviews
如何通过将整个战争部署到WildFly嵌入式来设置arquillian来测试maven war项目?
我想在嵌入式WildFly实例上对我的战争进行宏(不是微!)黑盒测试 . 我的maven项目看起来像这样 <project> ... <packaging>war</packaging> <!-- Lots of classes in src/main/webapp and files in src/main/webapp --> ... -
1 votesanswersviews
JBoss Arquillian:Spring MVC集成
我只是尝试将我现有的一个Spring MVC应用程序与Arquillian集成测试集成 . 到目前为止没有运气 . My application structure Core Module , Web Module 和 Test Module . 我正在尝试测试我的 Core Module 这是Spring Hibernate数据层 . 测试模块包含所有测试用例 . Web模块依赖于核心模块和...