Annotation Interface FillSource


@Target(FIELD) @Retention(RUNTIME) public @interface FillSource
Marks the field BloviateExtension should fill when FillDatabase is applied.

The annotated field must be a DataSource or a Connection and may be instance or static. When the source is a DataSource, the extension borrows a connection for the fill and closes it afterwards; a Connection is used as-is and left open (the test owns its lifecycle).

If no field is annotated, the extension falls back to a single field assignable to DataSource or Connection; it fails fast if none or more than one candidate exists.

See Also: