it.openutils.testing
Annotation Type DbUnitExecution


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
@Documented
public @interface DbUnitExecution

Version:
$Id: DbUnitExecution.java 581 2008-01-31 22:19:56Z fgiust $
Author:
fgiust

Optional Element Summary
 java.lang.String[] datasets
          The resource locations to use for loading dbunit dataset.
 java.lang.String dataSource
          The name of the datasource to use.
 java.lang.String excludedTables
          A regexp that can match table names.
 java.lang.Class<? extends org.dbunit.operation.DatabaseOperation> insertOperation
          The database operation that will be used to load datasets.
 java.lang.String schema
          Db schema name that will be given to dbUnit.
 boolean truncateAll
          If true, all the tables in the database will be truncated before loading any dataset.
 java.lang.Class<? extends org.dbunit.operation.DatabaseOperation> truncateOperation
          The database operation that will be used to truncate tables.
 

datasets

public abstract java.lang.String[] datasets
The resource locations to use for loading dbunit dataset.

Default:
{}

dataSource

public abstract java.lang.String dataSource
The name of the datasource to use. If can be left unset only if there is only one DataSource available in the Spring context.

Default:
""

schema

public abstract java.lang.String schema
Db schema name that will be given to dbUnit. Can be left unset if not needed (database specific)

Default:
""

excludedTables

public abstract java.lang.String excludedTables
A regexp that can match table names. Any table matching this regular expression will not be considered by DbUnit. By default tables starting with $ are ignored (oracle recycle bin).

Default:
"(^\\$(.*))"

truncateAll

public abstract boolean truncateAll
If true, all the tables in the database will be truncated before loading any dataset.

Default:
true

truncateOperation

public abstract java.lang.Class<? extends org.dbunit.operation.DatabaseOperation> truncateOperation
The database operation that will be used to truncate tables. Defaults to org.dbunit.operation.DeleteAllOperation

Default:
org.dbunit.operation.DeleteAllOperation.class

insertOperation

public abstract java.lang.Class<? extends org.dbunit.operation.DatabaseOperation> insertOperation
The database operation that will be used to load datasets. Defaults to org.dbunit.operation.InsertOperation

Default:
org.dbunit.operation.InsertOperation.class


Copyright © 2008 Openmind. All Rights Reserved.