com.github.springtestdbunit.annotation
Annotation Type ExpectedDatabase


@Documented
@Inherited
@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
public @interface ExpectedDatabase

Test annotation that can be used to assert that a database is in given state after tests have run.

Author:
Phillip Webb, Mario Zagar
See Also:
DbUnitTestExecutionListener

Required Element Summary
 String value
          Provides the location of the dataset that will be used to test the database.
 
Optional Element Summary
 DatabaseAssertionMode assertionMode
          Database assertion mode to use.
 

Element Detail

value

public abstract String value
Provides the location of the dataset that will be used to test the database.

Returns:
The dataset locations
See Also:
DbUnitConfiguration.dataSetLoader()

assertionMode

public abstract DatabaseAssertionMode assertionMode
Database assertion mode to use. Default is DatabaseAssertionMode.DEFAULT.

Returns:
Database assertion mode to use.
Default:
com.github.springtestdbunit.assertion.DatabaseAssertionMode.DEFAULT


Copyright © 2012. All Rights Reserved.