@Documented @Inherited @Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) @Repeatable(value=DatabaseSetups.class) public @interface DatabaseSetup
DatabaseTearDown
,
ExpectedDatabase
,
DbUnitConfiguration
,
DbUnitTestExecutionListener
Modifier and Type | Optional Element and Description |
---|---|
String |
connection
The name of the connection that should be used.
|
DatabaseOperation |
type
Determines the type of
operation that will be used to reset the database. |
String[] |
value
Provides the locations of the datasets that will be used to reset the database.
|
public abstract String connection
@DbUnitConfiguration
or left blank to use the default connection.public abstract DatabaseOperation type
operation
that will be used to reset the database.public abstract String[] value
configured
locations are relative
to the class under test.DbUnitConfiguration.dataSetLoader()
Copyright © 2016. All rights reserved.