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
6
votes
1 answer

Arquillian Run Modes

I'm trying to wrap my head around Arquillian and am just not fundamentally understanding the difference between in-container mode vs. as-client mode. My understanding is that, with Arquillian/ShrinkWrap: You create an archive that only contains the…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
5
votes
1 answer

Arquillian and Tomcat6 issue

I have two questions regarding Arquillian and Tomcat: -My arquillian tests fail with the following error message: org.jboss.jsfunit.example.hellojsf.HelloJSFTest Time elapsed: 0 sec <<< ERROR!…
balteo
  • 23,602
  • 63
  • 219
  • 412
5
votes
0 answers

CDI errors on Tests

I'm building an application using Wildfly Swarm 2018.5.0. When I setup the application tests, every thing works fine in an "Hello World" application, but when I add it to my application with all dependencies, there is a lot of erros like:…
Victor
  • 8,309
  • 14
  • 80
  • 129
5
votes
0 answers

Arquillian - strange warning, about something not being invoked

I am struggling to get Arquillian to run on an esoteric project that I am working on. Whilst I am still working on this failure to run, which has to do with sharing and referencing wildfly modules, I am also getting the following warning out of…
Inquisitor Shm
  • 1,433
  • 5
  • 17
  • 26
5
votes
0 answers

ClassNotFoundException when running WildFly Swarm Arquillian test

(Referenced by https://issues.jboss.org/projects/SWARM/issues/SWARM-767) I am trying to test my WildFly Swarm application using Arquillian. I have a custom Main class for my Swarm, and a custom deployment. When I attempt to run my tests, I receive a…
Mitch Talmadge
  • 4,638
  • 3
  • 26
  • 44
5
votes
3 answers

arquillian add resources from main folder

I have a problem inside the business code of our JAVA EE application server. We access some files inside the src/main/resources folder with InputStream inputStream = Thread .currentThread() .getContextClassLoader() …
Simon Schüpbach
  • 2,625
  • 2
  • 13
  • 26
5
votes
2 answers

Execution error: org.infinispan.util.concurrent.TimeoutException: ISPN000299: Unable to acquire lock after 10 seconds for key

While running the test cases in arquillian, I am getting bewlow error. When I run the use case on actual server there is no such exception ocuurs. I am using JBoss AS 7 with Infinispan 5.1. I tried to use solution of How to fix "Unable to acquire…
sauumum
  • 1,638
  • 1
  • 19
  • 36
5
votes
3 answers

Arquillian - Wildfly cannot deploy test.war (Could not connect to http-remoting://127.0.0.1:9990. The connection failed)

I am trying to run a simple JPA test (persist, read, JSON serialize) with Arquillian and Wildfly (8.1.0.Final and 8.2.0.Final tested) container, but until now I was not able to deploy test.war to the embedded server. The test runs with Jboss…
srex
  • 121
  • 1
  • 7
5
votes
4 answers

Unable to Inject EntityManager in JPA Integration Testing With Arquillian and WildFly

I'm trying do integration testing with the following stack: App server: Embedded WildFly CDI container: Weld Database: In-memory H2 ORM: Hibernate/JPA Platform: Java 8 OS: Mac OS X 10.10 I've setup basic integration testing with Arquillian (as done…
Sayo Oladeji
  • 741
  • 4
  • 15
  • 28
5
votes
2 answers

ArquillianProxyException instead of ConstrainViolationException in JUnit @Test(expected)

When using Arquillian to test my (JPA) entities as part of an integration test, everything seems seems to work, except testing for ConstraintViolations. For example it should not be possible to persist an entity instance which had null values in…
Michał Ziobro
  • 10,759
  • 11
  • 88
  • 143
5
votes
1 answer

Execute tests sequentially using Arquillian TestRunner TestNG

I can use Arquillian TestRunner JUnit Container to write sequential tests. import org.jboss.arquillian.junit.InSequence; import org.jboss.arquillian.junit.Arquillian; @RunWith(Arquillian.class) public class ClassToTest{ @Test …
5
votes
0 answers

Why jdbc logs isn't working

I try to activate JDBC logs into wildfly: I added to my standalone.xml in subsystem "urn:jboss:domain:logging:2.0": and in my datasource statement : spy="true" But, I haven't…
Seb
  • 1,118
  • 1
  • 11
  • 25
5
votes
1 answer

how to run arquillian test with gradle in intellij,how to set the build.gradle file?

I am working on creating arquillian junit tests on intellij with gradle now. Does anyone can tell me how to set the build.gradle file and plugin the arquillian in intellij? There are many tutorials I find just tell how to set the pom.xml file but we…
5
votes
0 answers

How to test content of a WAR from a separate Maven module using Arquillian

I have found bits and pieces of knowledge around the web, but haven't been able to put it together to solve this specific case. This answer seems a pretty good start, but it deals specifically with an EAR dependency. My (simplified) maven project…
Ryan Bennetts
  • 1,143
  • 2
  • 16
  • 29
5
votes
1 answer

JUnit/Arquillian: Run managed Wildfly 8.1 container

I'm trying to bring a simple test case to run: Is there anywhere a clean set of instructions how to run Java EE integration tests on managed Wildfly 8 containers? I just want to run a simple test case via mvn test within a fresh, downloaded Wildfly…
John Rumpel
  • 4,535
  • 5
  • 34
  • 48