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

No dependencies were set for resolution

I run tests using Arquillian integration testing framework. "Arquillian does not use the entire classpath to isolate the test archive. Instead, it uses the ShrinkWrap class, that is a Java API for creating archives. When we create the archive to…
Taras Melnyk
  • 3,057
  • 3
  • 38
  • 34
4
votes
2 answers

"Unable to retrieve Drone Instance within 60 seconds"

I am learning Java EE 7 using a German book called Workshop Java EE 7, which basically takes one by the hand to build a running sample application. In the second "iteration" of the book, integration tests are being defined (GitHub branch). However,…
4
votes
2 answers

Exception: Multiple service implementations found for interface DeployableContainer when running Arquillian tests

I'm trying to follow the example project "Feedback" from Continuous Enterprise Development in Java, ch. 3 with a bit of modification. I am using IntelliJ Idea and its JBoss-Forge plugin which shouldn't differ from using the console like in the…
josemigallas
  • 3,761
  • 1
  • 29
  • 68
4
votes
0 answers

Arquillian can't find Wildfly - org.jboss.arquillian.container.spi.client.container.LifecycleException

I'm trying to run Arquillian tests on a Wildfly managed container. Here's the Arquillian's deployment and the test: @RunWith(Arquillian.class) public abstract class ArquillianTestCase { @Deployment public static WebArchive…
Bruno Gasparotto
  • 671
  • 12
  • 31
4
votes
2 answers

Why Lazy Fetching is not working JPA

i have a hard time understanding the lazy fetching since i does not work for as i read about it in a book, they say that in lazy fetching jpa will load the entities only when they are accessed through geters so i created an Arquillian project to…
achabahe
  • 2,445
  • 1
  • 12
  • 21
4
votes
0 answers

Arquillian injected Weld Bean in EJB is null

I am succesfully running EJB tests with Arquillian against an (older) Glassfish 3.1 embedded. When trying to @Inject weld beans, I get a NPE when I want to address a method in a transitively injected Weld bean. So, I am testing EJB A. EJB A has a…
Coen Damen
  • 2,009
  • 5
  • 29
  • 51
4
votes
1 answer

Create ear test with Arquillian using Maven resolver

I need to create a real IT test using Arquillian for my EAR application. Since ShrinkWrap methods addClasses or addPackages are useless in real world - because of too many imports needed - I'd like to use Maven.resolver() which works with…
Fabrizio Stellato
  • 1,727
  • 21
  • 52
4
votes
1 answer

Arquillian: starts the server but doesn't deploy

I am adding Arquillian to my project, I started with helloworld example: @RunWith(Arquillian.class) public class AccountTest { @Deployment public static JavaArchive createTestArchive() { return…
Rudziankoŭ
  • 10,681
  • 20
  • 92
  • 192
4
votes
2 answers

Failed to process business interfaces for EJB class

While starting maven with test parameters, I get the above mentioned exception. While creating the integration test deployment, I get the following: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEJB0466: Failed to process…
EngJon
  • 987
  • 8
  • 20
4
votes
2 answers

EJB no interface view testing (arquillain & mockito)

I am working on a Java EE 7 (on wildfly 9.0.2) application and I stumbled on an article http://www.oracle.com/technetwork/articles/java/intondemand-1444614.html. Mainly about: Premature Extensibility Is the Root of Some Evil This makes sense in…
Albert Bos
  • 2,012
  • 1
  • 15
  • 26
4
votes
1 answer

Arquillian with wildfly 10

Looking for a tutorial on Arquillian with wildfly 10. I have tried this tutorial I am getting the following error when I try to run it. Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.as.embedded:main at…
4
votes
1 answer

Add all classes needed for EJB dependency injection of a single Enterprise Bean

I have Java Enterprise application consisting of more than ten projects compiled into one ear archive. I need to do some integration testing and I have to use the Arquillian platform with ShrinkWrap. In the @Deployment annotated method I have to…
Gabber
  • 5,152
  • 6
  • 35
  • 49
4
votes
1 answer

java.lang.NoClassDefFoundError: org/apache/log4j/Priority

I am following a custom logging tool to implement logging functionality for emails using log4j. I have added the dependency for the log4j:1.2.17 as well as the jar to the class path. I am trying to run a Test using arquillian. But every time I am…
A.S
  • 51
  • 1
  • 2
  • 5
4
votes
0 answers

CDI Injection in Arquillian TomEE embedded test with web sockets

I'm writing some integration tests of my @ServerEndpoint, and after finally getting the endpoint to run, I now get a nullpointer in @OnOpen because injection fails. I've uploaded the code on github: https://github.com/runarhk/Websockets-Test The…
Runar Halse
  • 3,528
  • 10
  • 39
  • 59
4
votes
1 answer

Arquillian configuration DeploymentException with WindowBeanHolder

I'm building a test suite in order to perform them on arquillian. I've followed this Arquillian's starting guide I'm using this gradle to test my tests: providedCompile 'org.jboss.spec:jboss-javaee-7.0:1.0.3.Final' testCompile…
Jordi
  • 20,868
  • 39
  • 149
  • 333