Class ClientBeforeAfterLifecycleEventExecuter


  • public class ClientBeforeAfterLifecycleEventExecuter
    extends Object
    Observer that executes the Before / After phases on the test case if the current test is in RunMode Client.

    BeforeClass/AfterClass are ALWAYS executed on Client side and NEVER In Container.
    In Container does not keep state between @Test, so Before/AfterClass works the same as Before/After.

    Before/After are ONLY executed on Client side if the @Test's RunMode is Client.

    BeforeX event execution has a low precedence to execute as late in the Before Phase as possible.
    AfterX event execution has a high precedence to execute as early in the After Phase as possible.
    (compared to other Arquillian @Observers)

    Version:
    $Revision: $
    Author:
    Aslak Knutsen
    See Also:
    BeforeLifecycleEventExecuter
    • Constructor Detail

      • ClientBeforeAfterLifecycleEventExecuter

        public ClientBeforeAfterLifecycleEventExecuter()
    • Method Detail

      • on

        public void on​(@Observes(precedence=-100)
                       org.jboss.arquillian.test.spi.event.suite.BeforeClass event)
                throws Throwable
        Throws:
        Throwable
      • on

        public void on​(@Observes(precedence=100)
                       org.jboss.arquillian.test.spi.event.suite.AfterClass event)
                throws Throwable
        Throws:
        Throwable
      • on

        public void on​(@Observes(precedence=-100)
                       org.jboss.arquillian.test.spi.event.suite.BeforeTestLifecycleEvent event)
                throws Throwable
        Throws:
        Throwable
      • on

        public void on​(@Observes(precedence=100)
                       org.jboss.arquillian.test.spi.event.suite.AfterTestLifecycleEvent event)
                throws Throwable
        Throws:
        Throwable