@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @interface TestDataSource
DataSource that supplies
a connection to the unit test database.
If a field is annotated, it should be of type DataSource. This field can be private. Example:
' @DataSource
private DataSource dataSource;
If a method is annotated, the method should have 1 DataSource argument. Example:
' @DataSource
void myMethod(DataSource dataSource)
public abstract String value
Copyright © 2008–2020 Matrix. All rights reserved.