Standard Annotation Support
The following annotations are supported with standard semantics for all configurations of the Infra TestContext Framework. Note that these annotations are not specific to tests and can be used anywhere in the TODAY Framework.
-
@Autowired
-
@Qualifier
-
@Value
-
@Resource
(jakarta.annotation) if JSR-250 is present -
@ManagedBean
(jakarta.annotation) if JSR-250 is present -
@Inject
(jakarta.inject) if JSR-330 is present -
@Named
(jakarta.inject) if JSR-330 is present -
@PersistenceContext
(jakarta.persistence) if JPA is present -
@PersistenceUnit
(jakarta.persistence) if JPA is present -
@Transactional
(cn.taketoday.transaction.annotation) with limited attribute support
JSR-250 Lifecycle Annotations
In the Infra TestContext Framework, you can use If a method within a test class is annotated with |