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}
phase
public abstract TestExecutionPhase phase
- Default:
- org.jboss.arquillian.persistence.TestExecutionPhase.BEFORE
strategy
public abstract CleanupStrategy strategy
- Default:
- org.jboss.arquillian.persistence.CleanupStrategy.STRICT
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.