org.jboss.arquillian.container.test.impl.execution
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:
BeforeLifecycleEventExecuter
Method Summary |
void |
on(org.jboss.arquillian.test.spi.event.suite.After event)
|
void |
on(org.jboss.arquillian.test.spi.event.suite.AfterClass event)
|
void |
on(org.jboss.arquillian.test.spi.event.suite.Before event)
|
void |
on(org.jboss.arquillian.test.spi.event.suite.BeforeClass event)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientBeforeAfterLifecycleEventExecuter
public ClientBeforeAfterLifecycleEventExecuter()
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.Before event)
throws Throwable
- Throws:
Throwable
on
public void on(@Observes(precedence=100)
org.jboss.arquillian.test.spi.event.suite.After event)
throws Throwable
- Throws:
Throwable
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.