Class ClientBeforeAfterLifecycleEventExecuter

java.lang.Object
org.jboss.arquillian.container.test.impl.execution.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:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    on(org.jboss.arquillian.test.spi.event.suite.AfterClass event)
     
    void
    on(org.jboss.arquillian.test.spi.event.suite.AfterTestLifecycleEvent event)
     
    void
    on(org.jboss.arquillian.test.spi.event.suite.BeforeClass event)
     
    void
    on(org.jboss.arquillian.test.spi.event.suite.BeforeTestLifecycleEvent event)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClientBeforeAfterLifecycleEventExecuter

      public ClientBeforeAfterLifecycleEventExecuter()
  • Method Details

    • 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