Arquillian Persistence Extension API 1.0.0.Alpha4

org.jboss.arquillian.persistence
Annotation Type Cleanup


@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Inherited
public @interface Cleanup

Determines when database cleanup should be triggered. Default test phase when is TestExecutionPhase.BEFORE. If not specified otherwise the whole database is erased. You can change this behaviour by setting up strategy() field.

Author:
Bartosz Majsak
See Also:
TestExecutionPhase}, {@link CleanupStrategy}

Optional Element Summary
 TestExecutionPhase phase
           
 CleanupStrategy strategy
           
 

phase

public abstract TestExecutionPhase phase
Default:
org.jboss.arquillian.persistence.TestExecutionPhase.BEFORE

strategy

public abstract CleanupStrategy strategy
Default:
org.jboss.arquillian.persistence.CleanupStrategy.STRICT

Arquillian Persistence Extension API 1.0.0.Alpha4

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