-
1. Re: junit-standalone runs a @Test 4 times! why?
mjobanek Oct 24, 2016 10:34 AM (in response to jjfraney)Hi,
if you want to use only
junit-standalone
, then remove thearquillian-junit-container
dependency.If you want to use both of them (standalone as well as container) then use only the
arquillian-junit-container
dependency as it transitively fetches also the standalone dependency.In addition, in the standalone mode you don't have to specify
@RunAsClient
annotation -
2. Re: junit-standalone runs a @Test 4 times! why?
jjfraney Oct 24, 2016 11:28 AM (in response to mjobanek)Thanks,
I will make only one of your suggested edits: removing arquillian-junit-standalone. Such is adequate to relieve the issue. Thanks for the correct answer.
FYI:
1) when I remove dependency arquillian-junit-container, a compiler error: mvn clean test-compile
[ERROR] /home/jfraney/projects/multitest/src/test/java/org/sample/SampleIT.java:[3,47] package org.jboss.arquillian.container.test.api does not exist
2) when I remove @RunAsClient, a warning when running the test: mvn clean test failsafe:integration-test verify
WARNING: The test method "org.sample.SampleIT testPlay" will run on the client side - there is no running deployment yet. Please use the annotation @RunAsClient