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
34
votes
1 answer

Maven is automatically skipping tests

How come that Maven is skipping all of my tests by default?I have a pom.xml with few profiles and I am not able to run my tests through neither of them. One of my profiles looks like jsf-test
Petr Mensik
  • 26,874
  • 17
  • 90
  • 115
26
votes
5 answers

'Already Connected' exception trying to do POST request using Jersey Client API

I'm creating integration tests for a JAX-RS/Jersey Webservice deployed on Tomcat 8 using arquillian. I am trying to do a POST request like that: E dummy = dummyFactory.manufacturePojo(getSubClassType()); dummy.setId(null); Client client =…
Marcos J.C Kichel
  • 6,887
  • 8
  • 38
  • 78
26
votes
4 answers

Adding all Maven dependencies to Arquillian

How do you add all dependencies in the POM to arquillian? Maven.resolver().loadPomFromFile("pom.xml").importRuntimeDependencies() .as(File.class); I found that line, but I Maven is red in intellij because it doesn't find the class.…
LuckyLuke
  • 47,771
  • 85
  • 270
  • 434
21
votes
3 answers

Single deployment for all test cases in Arquillian

We are using arquillian-junit-container 1.0.0 final version for Junit Test. We have so many test classes and every test class as @Deployment method so when i run all test together then its creating issue of memory and performance. Can anyone help me…
Ranu Jain
  • 577
  • 4
  • 11
18
votes
1 answer

“IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory” in arquillian

java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory. is caused by the presence of a JSF API inside a dependency. I'm eager to provide dependencies in the WAR or EAR of my Java EE applications…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
18
votes
9 answers

find all classes and interfaces a class extends or implements recursively

I was wondering if there was an easy way of determining the complete list of Types that a Java class extends or implements recursively? for instance: class Foo extends Bar implements I1, I2 {...} class Bar implements I3 {...} interface I1 extends…
coderatchet
  • 8,120
  • 17
  • 69
  • 125
16
votes
5 answers

How to mock services with Arquillian?

Is it possible to use some kind of mocking framework with Arquillian, or precisely how to mock injected EJBs? I know that, with using the CDI (Contexts and Dependency Injection), it is possible to inject alternatives in test. But without CDI as…
Teliatko
  • 1,521
  • 1
  • 14
  • 15
16
votes
8 answers

Missing artifact "sun.jdk:jconsole:jar:jdk"

When adding Arquillian to a Maven build I get the above exception in Eclipse: Missing artifact sun.jdk:jconsole:jar:jdk org.jboss.arquillian.junit
Stefan S.
  • 3,950
  • 5
  • 25
  • 77
15
votes
4 answers

Arquillian: Wildfly embedded?

Until now I had my integration tests running with Arquillian and an embedded Glassfish 4.x. As I suffer from bug ARQ-1458, I tried migrating to Wildfly 8.0.0.Beta1. My deps in Maven are: org.jboss.arquillian
Timo Böwing
  • 313
  • 1
  • 2
  • 8
15
votes
1 answer

Where can I find the arquillian xml configuration documentation?

I've tried to learn the JBoss Arquillian, by following the formal document and got confused about the configuration, the arquillian.xml. Since it is mentioned once here. Even I also found that there is a specific configuration describes at the…
Charlee Chitsuk
  • 8,847
  • 2
  • 56
  • 71
13
votes
2 answers

How to select a container by qualifyer from arquillian.xml?

I want to have different container configurations in my arquillian.xml and select them in my test. But I am unable to load any container but the default one.
Ralph
  • 118,862
  • 56
  • 287
  • 383
13
votes
2 answers

DeployableContainer must be specified error when running Arquillian

I've been trying to run this Arquillian example https://github.com/arquillian/arquillian-examples/tree/master/arquillian-tutorial There is no error when imported in Eclipse However I am getting this error when I run as JUnit…
quarks
  • 33,478
  • 73
  • 290
  • 513
12
votes
4 answers

JUnit @Ignore all other tests (@IgnoreOther ?)

I'm testing extensively with JUnit and sometimes - while debugging my code - I want (temporary) only run a single @Test of my @RunWith(Arquillian.class) test class. Currently I'm adding a @Ignore to all other tests and wondering if something like…
Thor
  • 6,607
  • 13
  • 62
  • 96
12
votes
3 answers

Build Path Issue with Maven Dependencies (jconsole-jdk.jar)

I switched to Wildfly 8.1 and can not resolve this build (path) problem, which somehow is eventually influenced by arquillian test framework. pom.xml: ${project.build.directory}/endorsed
budha
  • 321
  • 1
  • 2
  • 11
11
votes
2 answers

Stream API not working for lazy loaded collections in EclipseLink / Glassfish?

After detecting a flaw in one of my web services I tracked down the error to the following one-liner: return this.getTemplate().getDomains().stream().anyMatch(domain -> domain.getName().equals(name)); This line was returning false when I positively…
José González
  • 1,207
  • 12
  • 25
1
2 3
67 68