org.jboss.arquillian.container.test.impl.execution
Class ClientBeforeAfterLifecycleEventExecuter

java.lang.Object
  extended by 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:
BeforeLifecycleEventExecuter

Constructor Summary
ClientBeforeAfterLifecycleEventExecuter()
           
 
Method Summary
 void on(After event)
           
 void on(AfterClass event)
           
 void on(Before event)
           
 void on(BeforeClass event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientBeforeAfterLifecycleEventExecuter

public ClientBeforeAfterLifecycleEventExecuter()
Method Detail

on

public void on(@Observes(precedence=-100)
               BeforeClass event)
        throws Throwable
Throws:
Throwable

on

public void on(@Observes(precedence=100)
               AfterClass event)
        throws Throwable
Throws:
Throwable

on

public void on(@Observes(precedence=-100)
               Before event)
        throws Throwable
Throws:
Throwable

on

public void on(@Observes(precedence=100)
               After event)
        throws Throwable
Throws:
Throwable


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.