Open JosRoseboom opened 5 months ago
For a larger codebase it could be helpful that the ApplicationModules
offers a static method where you can parse in a DescribedPredicate
, to exclude modules or whatever you might like. However it could be useful to declare some more Filters in ApplicationModules
.
When adding Spring Modulith to an existing codebase full of violations, the CustomApplicationModuleDetectionStrategy is a big help. However, I was faced with a failure of
verify()
because a service used field injection. Here it was just a single case and I solved it, but there are codebases where this is the standard way of injecting. Instead of verify in the test you might do something like this:In general, this could occur for all kind of violations you don't want to solve now
I see value to add
verify(Predicate<String> filter)
anddetectViolations(Predicate<String> filter)
, but maybe I miss a better solution here.