Skip to content

Improve testing of architecture checks #47443

@wilkinsona

Description

@wilkinsona

We have some architecture checks that reference Spring Boot types such as @ConfigurationProperties and @ConditionalOnMissingBean. They have no tests at the moment as those types are not available for us to test against (we use string references in the checks themselves). We should try to improve this, perhaps by following a similar pattern to the configuration metadata annotation processor where the names of the annotations are configurable and overridden by TestConfigurationMetadataAnnotationProcessor. If we follow this approach, I'd change both the class names and the package names (rather than just the package names) to avoid duplicates when opening types by name in an IDE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions