Questions tagged [jboss-arquillian]

JBoss Arquillian is a testing platform for the JVM that enables developers to create automated integration, functional and acceptance tests for Java middleware.

JBoss Arquillian is an extensible testing platform for the JVM that enables developers to create automated integration, functional and acceptance tests for Java middleware.

The Arquillian project intends to reduce the complexity of integration testing by covering several aspects of test execution, such as container lifecycle management and remote execution, and adheres to three core principles:

  • Tests should be portable to any supported container
  • Tests should be executable from both the IDE and the build tool
  • The platform should extend or integrate existing test frameworks
1007 questions
4
votes
0 answers

Testing Passivation with Java EE 6 (JBoss 7.x)

I have a few SessionScoped beans that I would like to test and it occurred to me that I am not testing what happens when they get passivated. I would very much like to resolve this gap within the integration testing. However, there doesn't seem to…
drone.ah
  • 1,135
  • 14
  • 28
4
votes
2 answers

How to add test classes to an imported ear file and run server side with arquillian?

I want to create integration tests using arquillian. As deployment i want to use the ear that is also used to deploy in production. So this is my deployment: @Deployment(testable = true) public static Archive createDeployment() { return…
cremersstijn
  • 2,375
  • 4
  • 28
  • 41
4
votes
3 answers

How to combine manual insert and JPA Id generation?

I am running in-container tests with arquillian. I am prepopulating the database by adding an import.sql to the deployment. During the test I would like to create some more entities. Unfortunately, this fails with a…
kostja
  • 60,521
  • 48
  • 179
  • 224
4
votes
2 answers

Pushing systemproperties to remote container

I have a bunch of systemproperties defined in my maven pom.xml, that i need to acccess from Arquillian-tests, running on a remote glassfish instance. What's the easiest way to push the systemproperties to the container?
hhravn
  • 1,701
  • 1
  • 10
  • 22
4
votes
1 answer

Integration tests with Arquillian and Arquillian Spring Framework Extension

I would like to set up an infrastructure for integration testing. Currently we bootstrap tomcat using maven and then execute httpunit tests. But the current solution has few drawbacks. Any changes committed to the database need to be rollback…
Haim Raman
  • 11,508
  • 6
  • 44
  • 70
4
votes
1 answer

Arquillian with tomcat7 running into Java Heap Space problems, only on linux

we are running arquillian with tomcat 7... With the MAC from my colleague the test works fine, but at my linux computer (we both have 8gb ram) it failes with: FATAL: Error waiting for multi-thread deployment of WAR files to…
Joergi
  • 1,527
  • 3
  • 39
  • 82
4
votes
1 answer

How to write JUnit test when I use getUserPrincipal() and isCallerInRole() method in an enterprise bean?

My environment is Jboss AS 7.1.0. I am using JUnit and Arquillian for unit testing. I have SSBs that use getUserPrincipal(), and isCallerInRole() methods in my ejbs. In order to unit test these ejb methods, I have to simulate log-in from the unit…
4
votes
3 answers

Arquillian test with real EAR from build on JBoss 7.1

I want to test an Java EE application with Arquillian. A simple setup is working to put some test classes onto the server managed by Arquillian to test them. Now, I want to use a EAR file which was build during the build process. With…
Rick-Rainer Ludwig
  • 2,371
  • 1
  • 26
  • 42
4
votes
1 answer

Running Arquillian in Equinox

I'm trying to run integration tests in an OSGi container, namely the Equinox container embedded in Eclipse, using Arquillian in remote mode. I followed the instructions given on the JBoss OSGI site. So I began by provisionning my target platform by…
user1310749
  • 141
  • 1
  • 5
4
votes
3 answers

How does Arquillian compare to Pax Exam for OSGi (integration) testing?

I am currently investigating how best to test our OSGi application intended to run on Apache Karaf. The obvious option is Pax Exam with labs-paxexam-karaf (see http://iocanel.blogspot.com/2012/01/advanced-integration-testing-with-pax.html for a…
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
3
votes
3 answers

Arquillian test execution fails with JBoss 7.1 and vanilla Jboss kitchensink example

Following the README instructions of the jboss-as-kitchensink example, I have tried to run the arquillian tests as advertised, with following results: when running mvn clean test -Parq-jbossas-remote, I get these exceptions (copied from the…
kostja
  • 60,521
  • 48
  • 179
  • 224
3
votes
1 answer

EJB 3.1 - implementation of javax.security.auth

As I understand javax.security.auth is an API for authentication and authorization. I understand that security should be implemented by the container provider and the bean-provider can just use it in his bean my simple annotations…
Bala
  • 1,193
  • 2
  • 12
  • 34
3
votes
2 answers

Unresolved dependence org.jboss.arquillian:arquillian-bom in JBoss 7 Quickstarts

I'm trying to get arquillian run with jboss 7. I have downloaded the Quickstart projects from JBoss site, at http://www.jboss.org/jbossas/downloads, but I'm having troubles in running the Arquillian tests in the kitchensink project. Maven is not…
Joao Pereira
  • 2,454
  • 4
  • 27
  • 35
3
votes
0 answers

Arquillian, CDI 2.0 and JUnit 5/Jupiter

Do you have full support for JUnit 5/Jupiter? It is possible to use ExtendWith annotation easily? Such as these…
Otávio Santana
  • 318
  • 2
  • 12
3
votes
1 answer

Arquillian Chameleon Container with Java 11

we have following problem with starting a Arquillian-Test with Chameleon-Container and Wildfly 14 in a Java 11.0.2 (OpenJDK 11) environment. We use maven as the build tool. After starting the test, it stopped with following error: [INFO] ---…
Bam Kenobi
  • 130
  • 6