Skip to content

[Enhancement]: Allow @Container to be used as a meta-annotation #6913

@philwebb

Description

@philwebb

Module

Core

Proposal

Currently the @Container annotation in org.testcontainers.junit.jupiter has @Target(ElementType.FIELD) which prevents it being used as a meta-annotation. If ANNOTATION_TYPE were also added it could be possible to create composable annotations.

The TestcontainersExtension class uses AnnotationSupport.isAnnotated(field, Container.class) which already checks for meta-presence of annotations.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions