Skip to content
Advertisement

How to check that a constructor is called in the right classes with ArchUnit?

Is there any way to enforce a rule like this one with ArchUnit :

JavaScript

The issue here is that beCalledInClassesThat does not exists and I don’t find anything that will allow me to implement such a test.

Advertisement

Answer

Whenever you miss something in the predefined fluent API, try to define a custom predicate/condition. In your case: does this work for you?

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement