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

How to test login/authentication with Arquillian - Java EE 7

We have a Java EE 7 application and use Arquillian to test stuff. Now we want to check for some permissions of the currently logged in user. My question is quite basic, how do I login a user when inside a testcase? I have read ProgrammaticLogin…
bmurauer
  • 989
  • 8
  • 24
7
votes
1 answer

Arquillian on WAS remote container and @PersistenceContext

For our integration tests I wanted to use Arquillian and followed all the steps in the 'getting started tutorial'. Since I have an existing application things are not so trivial to set up however I managed to fix most of the problems. Now I get a…
Lonzak
  • 9,334
  • 5
  • 57
  • 88
7
votes
1 answer

Arquillian JPA tutorial: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor

I finished following the JPA tutorial at http://arquillian.org/guides/testing_java_persistence/ , but when I try to run the test ("Run the Test on GlassFish" section of the guide) as JUnit I obtain the following messages in Eclipse's…
Germano Massullo
  • 2,572
  • 11
  • 40
  • 55
7
votes
1 answer

Hibernate SchemaExport fails to first create schema

I am running tests using Arquillian, JBoss, JPA/Hibernate, H2 DB and Maven. In my test persistence.xml file I have: For now I have a…
lostdorje
  • 6,150
  • 9
  • 44
  • 86
7
votes
2 answers

How to see a file content in shrinkWrap

After creating the ShrinkWrap I am able to see the file structure by using this line of code System.out.println(webArchive.toString(true)); I wonder if is it possible to see the content of a specific file inside shrinkWrap, for example I want too…
Yashar
  • 1,122
  • 2
  • 15
  • 43
7
votes
4 answers

Arquillian: Adding beans.xml causes "ArquillianServletRunner not found"

I am using Arquillian[1] for testing my J2EE-App in an embedded glassfish environment inside Eclipse[2]-IDE. package test.java; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit.Arquillian; import…
Markus Schulte
  • 4,171
  • 3
  • 47
  • 58
7
votes
1 answer

@BeforeClass annotations invoking methods twice when using Arquillian on remote server

We're transitioning from using TestNG with an embedded JBoss to using Arquillian with a remote server. We are running a simple test that has a method annotated with @BeforeClass that does some test setup. After a lot of digging, it looks like that…
Chris Williams
  • 11,647
  • 15
  • 60
  • 97
6
votes
2 answers

add packages in deployment jar using shrinkWrap in arquillian test

I am using arquillian for unit test. I am creating deployment jar using shrinkWrap. But for that I need to add all the packages which are used in my project, which are a lot in number. following is my test file @RunWith(Arquillian.class) public…
nilesh
  • 1,483
  • 2
  • 19
  • 37
6
votes
1 answer

java.util.ServiceConfigurationError when running tests using arquillian+omnifaces

I am getting the following error "java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider org.omnifaces.ApplicationInitializer not found" when running Arquillian tests. I have put the most basic test case I…
LoneWolf
  • 505
  • 5
  • 17
6
votes
1 answer

jbossHome 'null' must exists

I am getting jbossHome 'null' must exists error while trying to run unit tests. I created a simple test class just to configure arquillian: @RunWith(Arquillian.class) public class EmpresaResourceTest { @Deployment @OverProtocol("Servlet…
Marcos J.C Kichel
  • 6,887
  • 8
  • 38
  • 78
6
votes
1 answer

Resolving depending war file with shrinkwrap maven resolver

I'm working on setup of arquillian testing. I want to deploy a WAR to JBoss using arquillian. This war is defined as a dependency in my pom.xml: my.project mywar
roehrijn
  • 1,387
  • 1
  • 11
  • 20
6
votes
1 answer

Arquillian with Glassfish V4

There is an official, "Arquillian GlassFish Embedded 3.1", plugin. Should this work with Glassfish V4, or is it a headache in the making? Is there some other way to test Glassfish V4 with Arquillian?
le3th4x0rbot
  • 2,493
  • 23
  • 32
6
votes
1 answer

JDBC Derby JPA Persistence testing issue "Internal Exception: java.sql.SQLSyntaxErrorException: Syntax error: Encountered 'USER'"

I have an entity class called User and when I do persistence testing with Arquillian I have always have an error... Internal Exception: java.sql.SQLSyntaxErrorException: Syntax error: Encountered "USER" at line 1, column 13. ...because of the…
Pinchy
  • 1,506
  • 8
  • 28
  • 49
6
votes
1 answer

Maven with automated testing using TestNG, JSFUnit 2 and Arquillian

im currently trying to make a JSFUnit-Test with Arquillian and TestNG, but the JSFServerSession and JSFClientSession-object is NULL. Is there a working EXAMPLE for having JSFUnit and TestNG? Or is something else wrong here? My testing-class: package…
FibreFoX
  • 2,858
  • 1
  • 19
  • 41
6
votes
3 answers

Tomcat + CDI + Arquillian

I use Tomcat 7 together with CDI and for that I used the jee6-servlet-minimal-archetype from the Knappsack Maven Archetypes as a starting point. Now I'd like to use Arquillian for testing the CDI beans, but even after searching for quite some time,…
Alexander Rühl
  • 6,769
  • 9
  • 53
  • 96
1 2
3
67 68