Log in to follow, share, and participate in this community.
Article FAQ Catalog
FAQ CatalogThis space is host to the Frequently Asked Questions (FAQ) for Arquillian. A catalog of the FAQs for Arquillian is displayed below, organized by topic area. Each question is answered in a separate document. Yo...
Article How do I create or copy and modify persistence.xml, beans.xml, etc?
How do I create or copy and modify persistence.xml, beans.xml, etc?I need to create a unit test with a non-empty beans.xml or persistence.xml using Arquillian. How do I do that? The simplest way is to have a test version of your persistence.xml or beans.xml stored as a separa...
Article Where is the Embedded GlassFish 3.1.2 jar?
Where is the Embedded GlassFish 3.1.2 jar?The glassfish-embedded-all artifact is required for running tests with the Embedded GlassFish container adapter. When GlassFish 3.1.2 was released, the groupId of this artifact was changed from org.glassfish.extras to...
Article Why do I get a socket connection error when using remote JBoss AS?
Why do I get a socket connection error when using remote JBoss AS?If you are running Ubuntu 10.10, read this FAQ! Problem If you're running your tests with the remote JBoss AS container adapter, you may encounter the following socket connection error (assume here your ...
Article Why do I get IllegalStateException ... Kept on getting 404s?
Why do I get IllegalStateException ... Kept on getting 404s?You may have encountered the situation where Arquillian fails to run the test case when using a web container (Java EE 6 or Servlet), reporting this exception as the reason: Caused by: java.lang.IllegalStateExc...
Article How does Arquillian know where JBoss AS is installed?
How does Arquillian know where JBoss AS is installed?Arquillian only needs to know where JBoss AS is installed when using the managed container (e.g., jbossas-managed-6). In this case, Arquillian manages the lifecycle of the container and therefore must have access to t...
Article How does a managed container differ from a remote container?
How does a managed container differ from a remote container?A managed container is simply a remote container that also includes lifecycle management (start and stop). Unlike an embedded container, however, the container process is not started in the same JVM as the test runner...
Article Why are the injection points in my test null?
Why are the injection points in my test null?If the injection points in your tests (e.g., fields annotated with @Inject) are null, make sure you're running against a CDI capable container. And remember you have to include a /META-INF/beans.xml file in your deplo...
Article Why do I get ClassNotFoundException: WeldException?
Why do I get ClassNotFoundException: WeldException?When you run your test, you may encounter an exception that ends in: Caused by: java.lang.ClassNotFoundException: org.jboss.weld.exceptions.WeldException
at java.net.URLClassLoader$1.run(URLC...
How do I manage transactions in my test?The developers of Arquillian are strong proponents of integration testing, where you test your real components as they will be used. For this reason, we recommend managing the transaction from inside your EJBs or Mana...
Article How do I install the TestNG 5.11 Eclipse plugin?
How do I install the TestNG 5.11 Eclipse plugin?The Arquillian documentation (as of version 1.0.0.Alpha2) contains the following note about the Eclipse TestNG plugin: You must use the 5.11 version of the TestNG Eclipse plugin, which can be downloaded from te...
Why aren't assert statements working?You may be finding that assertions that use the assert keyword don't execute. For the Java keyword "assert" to work you have to enable Assertions in the running Java VM (-ea). If your running against a Remote ...
Article Why does Eclipse fail to build Arquillian?
Why does Eclipse fail to build Arquillian?If you've tried to import an Arquillian module into Eclipse using the m2eclipse plugin, it likely fails to auto-build because the Maven enforcer plugin throws a rule violation. The problem is that when m2eclipse tries...
Article Why don't I see System.out or log messages?
Why don't I see System.out or log messages?When you run your Arquillian tests using a remote container, you may be confused why you are not seeing your System.out or log statements in the test output. The reason is, your test is not running in the same Java VM...