-
Enhancement
-
Resolution: Duplicate
-
Minor
-
None
-
2.1.0.Alpha1
-
None
JUnit allow to skip test by condition by passing Assume into @Before.
Assume passed into ServerSetupTask.setup() will cause skipping rest of the setup() method with ERROR, but will not prevent tests to run and @Deployments to deploy.
18:41:45,522 ERROR [org.jboss.as.arquillian.container.ServerSetupObserver] (main) Setup task failed during setup. Offending class 'org.jboss.as.test.integration.ejb.security.EjbElytronDomainSetup@7e928e2f': org.junit.AssumptionViolatedException: got: <false>, expected: is <true> at org.junit.Assume.assumeThat(Assume.java:95) at org.junit.Assume.assumeTrue(Assume.java:41) at org.jboss.as.test.integration.ejb.security.EjbElytronDomainSetup.setup(EjbElytronDomainSetup.java:109)
ServerSetup fail should prevent tests run (with error) and failing Assume in ServerSetup should ensure ignoring of tests (like in @Before in JUnit)
- is duplicated by
-
WFARQ-160 Propagate JUnit 'failed assumption' exception types from ServerSetupObserver
- Resolved