GH-601 - Support for wildcard references to named interfaces in explicitly defined allowed application module dependencies.

When defining allowed application module dependencies to named interfaces, the asterisk can now be used to allow referencing all named interfaces declared by the target module.
This commit is contained in:
Oliver Drotbohm
2024-05-16 11:08:45 +02:00
parent e9203ca159
commit 51c5f0bf42
6 changed files with 115 additions and 24 deletions

View File

@@ -106,7 +106,7 @@ class ApplicationModulesIntegrationTest {
assertThat(modules.getModuleByName("invalid3")).hasValueSatisfying(it -> {
assertThatExceptionOfType(Violations.class).isThrownBy(() -> it.verifyDependencies(modules))
.withMessageContaining("Allowed targets")
.withMessageContaining("complex::API");
.withMessageContaining("complex :: API");
});
}