Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright Openmind
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package it.openutils.testing;

$Id: 630 2008-02-19 13:41:04Z fcarone $
public @interface DbUnitExecution {

The resource locations to use for loading dbunit dataset.
    String[] datasets() default {

The name of the datasource to use. If can be left unset only if there is only one DataSource available in the Spring context.
    String dataSource() default "";

Db schema name that will be given to dbUnit. Can be left unset if not needed (database specific)
    String schema() default "";

The datatype factory (DatabaseConfig.PROPERTY_DATATYPE_FACTORY) to use. Can be left unset if not needed.
    Class< ? extends IDataTypeFactorydataTypeFactory();

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).
    String excludedTables() default "(^\\$(.*))"// oracle recycle bin

If true, all the tables in the database will be truncated before loading any dataset.
    boolean truncateAll() default true;

The database operation that will be used to truncate tables. Defaults to org.dbunit.operation.DeleteAllOperation
    Class< ? extends DatabaseOperationtruncateOperation() default org.dbunit.operation.DeleteAllOperation.class;

The database operation that will be used to load datasets. Defaults to org.dbunit.operation.InsertOperation
    Class< ? extends DatabaseOperationinsertOperation() default org.dbunit.operation.InsertOperation.class;
New to GrepCode? Check out our FAQ X