Arquillian Warp Extension: Implementation 1.0.0.Alpha1

org.jboss.arquillian.warp.server.test
Class LifecycleTestDeenricher

java.lang.Object
  extended by org.jboss.arquillian.warp.server.test.LifecycleTestDeenricher

public class LifecycleTestDeenricher
extends Object

Watches the ServerAssertion objects and on Before event, it stores all fields which have been changed during that event. These changes are the ServerAssertion enrichment actions. Then on After method, it restores all the changed fields, which deenrich the instance.

Author:
Lukas Fryc

Constructor Summary
LifecycleTestDeenricher()
           
 
Method Summary
 void afterTest(org.jboss.arquillian.core.spi.EventContext<org.jboss.arquillian.test.spi.event.suite.After> context)
           
 void beforeTest(org.jboss.arquillian.core.spi.EventContext<org.jboss.arquillian.test.spi.event.suite.Before> context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifecycleTestDeenricher

public LifecycleTestDeenricher()
Method Detail

beforeTest

public void beforeTest(@Observes(precedence=100)
                       org.jboss.arquillian.core.spi.EventContext<org.jboss.arquillian.test.spi.event.suite.Before> context)

afterTest

public void afterTest(@Observes(precedence=100)
                      org.jboss.arquillian.core.spi.EventContext<org.jboss.arquillian.test.spi.event.suite.After> context)

Arquillian Warp Extension: Implementation 1.0.0.Alpha1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.