Uploaded image for project: 'WildFly Arquillian'
  1. WildFly Arquillian
  2. WFARQ-23

Assume in ServerSetup should ensure ignoring of tests

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: Minor 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)

              Unassigned Unassigned
              jkalina@redhat.com Jan Kalina (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: