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

Why does my Arquillian Drone functional test not work on GitLab CI?

A test which runs fine locally fails on gitlab.com's GitLab CI shared runners (the MCVE is at https://gitlab.com/krichter/gitlab-ci-file-creation, the log at https://gitlab.com/krichter/gitlab-ci-file-creation/-/jobs/40064276) because during the…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
3
votes
0 answers

Trouble setting up Arquillian tests for Wildfly app with Picketlink

I'm trying to write Arquillian tests for a web app to be deployed on Wildfly using Picketlink. My setup worked before I added Picketlink and it looks like I can package and deploy my application without any tests (it doesn't work which is why I want…
Lev Kuznetsov
  • 3,520
  • 5
  • 20
  • 33
3
votes
1 answer

How to create a temporary database with postgresql initdb?

How do I create a temporary database for PostgreSQL using initdb? Also, how do I populate it with dummy data and how do I delete it after usage? I have an entire schema of the database. I don't want to create temporary tables one by one. Using…
3
votes
1 answer

Conditional Deployment in Arquillian

Looking at the Arquillian documentation, I am aware that I can use the @ArquillianSuiteDeployment and @Deployment annotations to deploy my desired jars/wars to the container. Example: @ArquillianSuiteDeployment public class MyDeployer { …
angryip
  • 2,140
  • 5
  • 33
  • 67
3
votes
1 answer

Bean not injected with CDI and Arquillian test failed when SolrServer is used

My Arquillian test looks like this: import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import javax.enterprise.inject.spi.CDI; import javax.inject.Inject; import…
Miroslaw
  • 221
  • 2
  • 8
3
votes
0 answers

ArquillianResteasyResource caused initializationError - Method should have no parameters

I have simple JUnit test running with Arquillian, but when I want to use ArquillianResteasyResource(...) annotation, the test ends with "should have no parameters" @Test @InSequence public void testSome(@ArquillianResteasyResource(RES_BASE_URI)…
hradecek
  • 2,455
  • 2
  • 21
  • 30
3
votes
1 answer

Arquillian org.jboss.arquillian.container.spi.client.deployment.Validate.isArchiveOfType(Ljava/lang/Class;Lorg/jboss/shrinkwrap/api/Archive;)Z

I am having trouble to get a simple Arquillian test run. The following error appears when I try to run Arquillian with the GlassFish remote container: Jun 12, 2016 3:50:05 PM org.jboss.arquillian.container.impl.MapObject populate WARNUNG:…
Rooky
  • 810
  • 3
  • 12
  • 20
3
votes
2 answers

JBOSS Arquillian : How to force database to throw exception while running the aquillian test?

I am implementing a feature where if there is any exception while writing data into DB, we should retry it for 5 times before failing. I have implemented the feature but not able to test it using arquillian test. We are using JPA and Versant as…
sauumum
  • 1,638
  • 1
  • 19
  • 36
3
votes
4 answers

Can Unit or Integretation Test have getters and setters?

I am trying to write integration tests and want to make it in a best way regarding programming best practices, etiquette, etc. First I had a question on how to reuse existing tests in another test class and I found the answer in topic How to reuse…
Armine
  • 1,675
  • 2
  • 24
  • 40
3
votes
2 answers

Run code before arquillian deployment

I am writing integration tests for a Java EE Servlet using Arquillian + JUnit. I need to be able to execute code before the server launches. So is it possible to execute code before @Deployment? I tried @BeforeClass with no luck. The reason I need…
3
votes
1 answer

Missing Jacoco Code Coverage and IncompatibleClassChangeError

I have a maven project with some Arquillian Tests (Drone/Graphene Tests included). When I build my project using maven all my Arquillian Tests that use Graphene and Drone or Warp will fail with following exception Running…
3
votes
0 answers

Arquillian Tomee failing to start

I have a tomee based application which I am testing using arquillian.I am using testNg & have configured tomee to use random ports by adding the following to my pom.xml : org.apache.maven.plugins
Suraj Menon
  • 1,486
  • 3
  • 28
  • 50
3
votes
2 answers

Arquillian reusing RequestScoped Beans in multiple Testmethods

My JEE 6 Application is using CDI, as well as Arquillian with an embedded tomee (1.7.2) to test it. In a test-class with multiple test methods, the same Request Scoped Bean instance is being injected in multiple test methods. The problem is not…
3
votes
1 answer

Arquillian can't @Inject Stateless bean

I have an Integration test with Arquillian 1.1.8 and I am using Wildfly 8.2.1 as container. This is the Test: @RunWith(Arquillian.class) public class FileReaderAndWriterTest { private final MockDataFactory dataFactory = new MockDataFactory(); …
olkoza
  • 715
  • 2
  • 17
  • 35
3
votes
3 answers

Can't open ressource file in Arquillian test

I want to read a test CSV file (xxx.csv) in my integration test using arquillian. I am packing my archive as follows: @Deployment public static WebArchive createDeployment() { WebArchive archive = ShrinkWrap.create(WebArchive.class); …
olkoza
  • 715
  • 2
  • 17
  • 35