com.github.springtestdbunit.annotation
Annotation Type DbUnitConfiguration


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

Annotation that can be used to configure DbUnitTestExecutionListener.

Author:
Phillip Webb
See Also:
DbUnitTestExecutionListener

Optional Element Summary
 String databaseConnection
          Returns the name of a spring bean will be used to access a IDatabaseConnection.
 Class<? extends DataSetLoader> dataSetLoader
          Returns the class that will be used to load IDataSet resources.
 

databaseConnection

public abstract String databaseConnection
Returns the name of a spring bean will be used to access a IDatabaseConnection. The referenced bean can either be a instance of IDatabaseConnection or a DataSource.

Returns:
the bean name of the database connection
Default:
""

dataSetLoader

public abstract Class<? extends DataSetLoader> dataSetLoader
Returns the class that will be used to load IDataSet resources. The specified class must implement DataSetLoader and must have a default constructor.

Returns:
the data set loader class
Default:
com.github.springtestdbunit.dataset.FlatXmlDataSetLoader.class


Copyright © 2012. All Rights Reserved.