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
11
votes
2 answers

CDI testing with Arquillian

3 days ago I completed the Arquillian "getting started" guide and decided that this would be a good thing to use for unit testing of my part of a CQRS system. Unfortunately this has proved a little less than straight forwards. I have googled for the…
Ian
  • 412
  • 1
  • 4
  • 18
11
votes
5 answers

Maven (surefire) test plugin excludes not working

I have following configuration in my pom.xml maven-surefire-plugin 2.17
zbig
  • 3,830
  • 2
  • 29
  • 37
11
votes
4 answers
11
votes
2 answers

Integration test with Arquillian and Wildfly

I try to run integration test with Arquillian and Wildfly. My dependencies in Maven look as follows: org.jboss.arquillian arquillian-bom 1.1.2.Final-wildfly-1
user3318442
  • 163
  • 2
  • 10
11
votes
2 answers

Arquillian: Create a WebArchive from an existing war using ShrinkWrap

I am trying to deploy an existing war from another maven project in Arquillian. I have resolved the war and have it copied to the target directory of my Arquillian project. I try to create it below: @Deployment public static WebArchive…
cbeaudin
  • 667
  • 7
  • 19
10
votes
1 answer

Embedded Glassfish, security and Arquillian questions

I want to test my EJBs on an embedded Glassfish using Arquillian. The important thing is that I have to have security up because my bean logic does some programmatic security checking (sessionContext.isCallerInRole(role)). Is it possible to…
Koohoolinn
  • 1,427
  • 6
  • 20
  • 29
10
votes
1 answer

Arquillian - programmatic configuration

I am writing integration tests using Arquillian with embedded glassfish 3.1.2.2 using TestNG. I want to be able to run those tests in parallel, and for this case i need to dynamically configure glassfish ports and database name (we already have this…
botchniaque
  • 4,698
  • 3
  • 35
  • 63
9
votes
3 answers

Using both Arquillian and PowerMock in the same JUnit test

I would like to use the features of both Arquillian and PowerMock in the same JUnit 4 test. The problem is that both products are JUnit Runners which should be used with @RunWith, and this is not possible to use multiple @RunWith on the same test…
Anthony O.
  • 22,041
  • 18
  • 107
  • 163
9
votes
2 answers

Cannot run arquillian tests

I'm trying to use Arquillian for some unit tests, however I can't find why they fail when deployed using Maven. This is the class test: package com.ndeveloper.spec.test; import javax.inject.Inject; import junit.framework.Assert; import…
Pablo
  • 3,433
  • 7
  • 44
  • 62
9
votes
1 answer

How to implement a custom runner in JUnit5

Is there some way to have complete control over execution of test methods (including before/after methods) in JUnit5, similar to JUnit4 @RunWith annotation)? I'm trying to build a JUnit5 Arquillian extension, but since Aquillian basically needs to…
OndroMih
  • 7,280
  • 1
  • 26
  • 44
9
votes
2 answers

Dependencies in MANFEST.MF ignored on JBoss 7

We have an EJB module that we are deploying to JBoss 7.1.1 which depends on Infinispan and Infinispan Treecache. I created a module and deployed it in the modules section of jboss. However, there seems to be a problem with it getting picked up…
drone.ah
  • 1,135
  • 14
  • 28
9
votes
2 answers

Debug Arquillian tests in IntelliJ

I have Java EE project in which I use Arquillian tests with JUnit on JBoss 7 (Windows). Tests are working fine however I cannot debug them. From what I've googled (https://community.jboss.org/wiki/WhyDontBreakPointsWorkWhenDebugging) I understand…
Martin Nuc
  • 5,604
  • 2
  • 42
  • 48
9
votes
3 answers

Explicite Local EJB not injected with Arquillian

I use Arquillian to test an stateless session bean that has an explicit local and remote interface. But in the test Arquillian does not "inject" anything in a field that has the type of the local interface, but it works for the remote…
Ralph
  • 118,862
  • 56
  • 287
  • 383
8
votes
1 answer

How do I setup arquillian to test a maven war project by deploying the entire war to WildFly embedded?

I 'd like to do macro (not micro!) black box testing of my war on an embedded WildFly instance. My maven project looks like this ... war