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

Arquillian - ClassNotFound on org.jboss.arquillian.core.api.threading.ExecutorService

I'm currently trying to make arquillian works but I have a problem on one of my Unit Test. It fails on a CLassNotFoundException on class org.jboss.arquillian.core.api.threading.ExecutorService. Maybe I forgot a dependancy in my pom.xml, or I…
5
votes
1 answer

Java EE CDI interceptor not working inside JAX-RS resource class

I wanted to use a profiling interceptor inside a jax-rs resource class. The interceptor works otherwise, but it causes problems inside a jax-rs resource class. I have put the demo code on github. Here is a description of the problem. First, here is…
JBT
  • 8,498
  • 18
  • 65
  • 104
5
votes
0 answers

Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor

I am trying to run a test class and facing some problem related to arquillian. Here is the exception what I am getting. java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor at…
5
votes
3 answers

Unable to test CDI ViewScoped beans like we used to test JSF ViewScoped managed bean

We're in the process of moving our project to Java EE 7 targeting JBoss Wildfly. We have a few dozen @ManagedBean @javax.faces.bean.ViewScoped (the old non-CDI ViewScoped) controllers that we're converting to @Named @javax.faces.view.ViewScoped (new…
Greg Noe
  • 1,176
  • 1
  • 12
  • 29
5
votes
4 answers

WELD-001408 Unsatisfied dependencies for type [Logger] with qualifiers [@Default] at injection point [[field] using arquillian

I am running a basic arquillian unit test, using the Greeter example on the arquillian site. The only difference is that am doing a log.debug in the greet(PrintStream to, String name) function in Greeter.java. Am using slf4j for…
Kevin Joymungol
  • 1,764
  • 4
  • 20
  • 30
5
votes
3 answers

Errors when executing maven install with glassfish-embedded-all and arquillian-glassfish-embedded-3.1 artifacts

I'm trying to execute maven install on a pom and the result shown is: Grave: SEC5054: Certificate has expired This result appears just after test execution begins. I have been googling over this problem but I've only found solutions that are…
JPCF
  • 2,232
  • 5
  • 28
  • 50
5
votes
3 answers

How to add 'main/src/.../messages.properties' file to ShrinkWrap WebArchive?

I have the following files in a project: com/example/module/Messages.java com/example/module/messages.properties Using ShrinkWrap.create(WebArchive.class, "test.war").addPackages(true, "com.example.module") only adds Messages.java to the generated…
rubenlop88
  • 4,171
  • 2
  • 28
  • 32
5
votes
3 answers

Arquillian Embedded Glassfish Certificate Expired

On Aug 14th, the gtecybertrust5ca certifcate used by Glassfish expired causing my Arquillian tests to print errors. This problem is similar to this one: Certificate has expired” in log by starting Glassfish 3.1.2 except, I am using the Embedded…
Heather92065
  • 7,333
  • 6
  • 31
  • 39
5
votes
2 answers

Injecting EntityManager with a producer in tomcat

I am running a project using Hibernate and Weld CDI on tomcat 7. I have write a ServletContextListener to create the EntityManagerFactory and EntityManager during application startup. public class PersistenceListener implements…
Yashar
  • 1,122
  • 2
  • 15
  • 43
5
votes
2 answers

Arquillian Drone/Graphene/Selenium and UI/Functionality Testing

I'm halfway bought-and-sold on investing a fair amount of time into completely learning JBoss Arquillian and using it for all my integration and functional testing. I'm 100% sure that I want to use it for my integration testing framework, but am a…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
5
votes
3 answers

Proper structure of functional/acceptance tests

I'm currently working on building an automated functional/acceptance test suite for a project, but I don't have a lot of experience writing these types of tests, so I wanted to get some input on properly structuring them. Specifically, I'm working…
4
votes
3 answers

How to test EJB method call with Arquillian Weld EE Embedded

I would like to test an EJB, and I want to test it with Weld EE Embedded as I don't want to deploy an applicatoin server for that. Here is my class : @RunWith(Arquillian.class) public class EJBTest { @Deployment public static JavaArchive…
Anthony O.
  • 22,041
  • 18
  • 107
  • 163
4
votes
5 answers

Weld (CDI): where do I put my test-only beans.xml that configures ?

My webapp has a non-empty production beans.xml under src/main/resources/META-INF. Now, for my tests, I need to swap out 1 bean with an alternative. Where do I put this test beans.xml which contains just this and nothing more?
Geoffrey De Smet
  • 26,223
  • 11
  • 73
  • 120
4
votes
1 answer

TestNG - injection fails when using any @Before* annotation but works without

I would like to use the @Inject annotation in my TestNG test case. The test is executed by Arquillian in a remote JBoss AS 6 instance. The test basically looks like this: Test case public class WorksheetControllerTest extends Arquillian { …
Sebastian Wramba
  • 10,087
  • 8
  • 41
  • 58
4
votes
2 answers

Arquillian/JUnit tests run from console but not inside Eclipse

I've setup our project with some JUnit tests that are run by Arquillian inside the full JBoss Server (inside a profile called jboss-remote-6). I pretty much did everything as in the manual at…
Sebastian Wramba
  • 10,087
  • 8
  • 41
  • 58