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
3
votes
3 answers

Arquillian: use different port(s) for the managed WildFly container than a normal WildFly process

During development, I want to be able to run my arquillian tests while my webapp is open. Both use a different instance of WildFly: My Arquillian tests use a managed (or even embedded) wildfly container To test my webapp manually, I deploy it to…
Geoffrey De Smet
  • 26,223
  • 11
  • 73
  • 120
3
votes
1 answer

How to add library in arquillian service deployment?

i'm currently using Arquillian for jboss(remote) and i'm trying to make Jmockit work. I deployed an ear which works fine, but i'm getting this error for arquillian-service: java.lang.NoClassDefFoundError: mockit/internal/state/TestRun Caused by:…
3
votes
0 answers

Annotation @UsingDataSet stopped working after migration

Recently we've started a migration of our projects from Java 6 to Java 8. That brought a cascade of updates, which included moving from glassfish 3.1.2.2 to glassfish 4.1, JEE6 to JEE7 etc. However after the process our tests done with arquillian,…
Deltharis
  • 2,320
  • 1
  • 18
  • 29
3
votes
1 answer

Arquillian: Attempted to register the same Observer, ServerSetupObserver multiple times

I am trying to configure arquillian with wildfly but am the following Getting error in the process of running test: java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor at…
bavon
  • 151
  • 2
  • 14
3
votes
0 answers

Arquillian Test

I am getting the following exception: org.jboss.arquillian.container.spi.client.container.DeploymentException: Cannot deploy: test.war at org.jboss.as.arquillian.container.ArchiveDeployer.deployInternal(ArchiveDeployer.java:83) ... at…
Miltex
  • 302
  • 1
  • 13
3
votes
1 answer

If there is a way to deploy jdbc driver using Arquillian

I am trying to run the test by using embedded wildFly. I want Arquillian to deploy the jdbc driver before test. If it is possible, or I forced to deploy this driver manualy to the server before testing?
serg
  • 1,003
  • 3
  • 16
  • 26
3
votes
3 answers

Is it possible to use Arquillian Graphene without using Arquillian container management and deployment?

I have a quite big set of Selenium driven UI tests, that are very cumbersome to maintain. I've read about Arquillian Graphene and its benefits, making life with Selenium less painfull. I wonder if it's possible to use Arquillian Graphene (2)…
3
votes
3 answers

Arquillian and TimerService

So I have an EJB that has a @Schedule annotated method, and I want to test it using arquillian, what I can easily do invoking the method directly, but because the deployment is being run on wildfly the timer service is started and the scheduled…
LoneWolf
  • 505
  • 5
  • 17
3
votes
1 answer

WELD-000119 Not generating any bean definitions from "Clazz" because of underlying class loading error

I'm trying to run Arquillian tests inside my JBoss EAP server container. When i run them, i'm getting the following info messages: 16:49:48,648 INFO [org.jboss.weld.ClassLoading] (MSC service thread 1-1) WELD-000119 Not generating any bean…
Bruno Leite
  • 542
  • 4
  • 12
3
votes
1 answer

Arquillian/Shrinkwrap: How to replace jar or class folder from a WAR?

I have a prebuild WAR-archive, which contains all my needed structure of the WAR to deploy with Arquillian. So I am creating a WAR-Archive in Arquillian based on this prebuild war file. ShrinkWrap.createFromZipFile(WebArchive.class, new…
cilap
  • 2,215
  • 1
  • 25
  • 51
3
votes
1 answer

JUnit assertFalse(true) --> successful test case?

How can this testcase result in a success (i.e. green in my JUnit window): @Test public void caseForXFiles(){ Assert.assertFalse(true); } Also, all other sorts of cases succeed although they shouldn't. I assume I don't have to explicitly enable…
dasLort
  • 1,264
  • 1
  • 13
  • 28
3
votes
0 answers

Start Tomcat 8 with Arquillian in JUnit

I'm trying to run integration tests for my web application. So I want to start Tomcat 8 from a JUnit Test case. @RunWith(Arquillian.class) public class ServiceTest { @ArquillianResource private URL baseURL; /** * Define the…
Daniel Gerber
  • 3,226
  • 3
  • 25
  • 32
3
votes
1 answer

Arquillian ShrinkWrap

I'm having trouble creating a JUnit test using a pom.xml dependency. The test are being run with Arquillian @RunWith(Arquillian.class) In this method @Deployment public static JavaArchive createDeployment() { First, I create a JavaArchive…
Antimo
  • 460
  • 1
  • 8
  • 19
3
votes
1 answer

how to use arquillian for integration tests having multi maven modules

I have multiple maven modules: DBLayer (Contains all entities),UserManagement (User management services), WebApp For setting up the testing i need to understand how to structure everything. I want to test each module in an embedded container. As you…
3
votes
2 answers

"ArquillianServletRunner not found" with Tomcat 7 Embedded

I'm attempting to create a test suite with Arquillian and Tomcat 7 embedded, but when I deploy my WAR file with a web.xml file, I get the following error. ArquillianServletRunner not found. Could not determine ContextRoot from ProtocolMetadata,…
Phyxx
  • 15,730
  • 13
  • 73
  • 112