public interface Plugin
Plugin that can inject into fields.
The avaje-jex-test provides a plugin that would start a http server and inject a http client into the field for the tests to use.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe plugin scope for the test. -
Method Summary
Modifier and TypeMethodDescriptioncreateScope(BeanScope beanScope) Create a plugin scope for either EACH or ALL (per test or per class)booleanReturn true if this plugin should inject for this class.
-
Method Details
-
forType
Return true if this plugin should inject for this class. -
createScope
Create a plugin scope for either EACH or ALL (per test or per class)The scope will be closed appropriately (afterEach or afterAll).
-