org.jboss.arquillian.persistence
Annotation Type CleanupUsingScript
@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Inherited
public @interface CleanupUsingScript
Defines SQL scripts used for cleaning test database.
If files are not specified explicitly, following strategy is applied:
- Assumption that files are stored in
scripts folder.
-
If annotation is defined on method level, file name has following format:
cleanup-[fully qualified class name]#[test method name].sql.
-
If annotation is defined on class level, file name has following format:
cleanup-[fully qualified class name].sql.
- Author:
- Bartosz Majsak
value
public abstract String[] value
- Default:
- ""
phase
public abstract TestExecutionPhase phase
- Default:
- org.jboss.arquillian.persistence.TestExecutionPhase.BEFORE
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.