Unit Test Your Java Architecture With ArchUnit by Roland Weisleder

Опубликовано: 19 Январь 2025
на канале: Devoxx
5,005
151

Architecture and code are drifting more and more apart? The implementation of non-functional requirements and cross-cutting concerns is often forgotten? Too much spaghetti code due to circular dependencies? Sadly, such things happen far too often and will eventually lead to an unmaintainable code base.

In the Java ecosystem, the library ArchUnit is a possible solution for this situation. We will look at how we can use ArchUnit to test our architecture within unit tests and finally get structure back into the system. We will also look at jMolecules, which allows us to model architectural concepts directly in the code.