Unit Test Your Java Architecture With ArchUnit by Roland Weisleder

Поділитися
Вставка
  • Опубліковано 20 бер 2023
  • 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.
  • Наука та технологія

КОМЕНТАРІ • 2

  • @TheodoreRavindranath
    @TheodoreRavindranath 5 місяців тому +2

    Great presentation. One query: This all seems like these rules are typed as part of a code base. What about microservices environment, where we want several projects to follow the same set of rules? Does that mean we bundle ArchUnit tests as a custom jar and add it to all projects?