Category "archunit"

How to prohibit usage of classes with certain annotation

In our organizations we've got several microservices and lots of libraries. Some libraries define "public" classes that are not intended for public usage - only

ArchUnit Rule to prevent access to derived classes?

A colleague did some refactoring and moved a method to a superclass to be able to reuse it from an other child-class, too. The IDE handled that quickly and with

How to ignore classes in test class with ArchUnit

I wrote my first ArchUnit test: import static com.tngtech.archunit.library.dependencies.SlicesRuleDefinition.*; // more non-static imports @RunWith(ArchUnitRu