|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface TestDataSource
Annotation indicating that this field or method should be initialized with the DataSource that supplies
a connection to the unit test database.
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||