ArchUnit
ArchUnit copied to clipboard
A Java architecture test library, to specify and assert architecture rules in plain Java
I'd like a pair or record defined around `layeredArchitecture`. I'm certain that when you made the DSL that you assumed manual formatting. Every formatter I know deals with the chain...
Greetings, We have in our company a lot of arch unit tests running. So I looked into the profiler to see what could be a straight forward way to achieve...
jmolecules documents `@Module( value = "..." )` as an alias for name ## Given ```java modules().definedByAnnotation(Module.class).should().beFreeOfCycles().check(javaClasses); ``` ## When ```java @Module("Annotations") @InfrastructureLayer @NullMarked package com.myorg.annotation; import org.jmolecules.architecture.layered.InfrastructureLayer; import org.jmolecules.ddd.annotation.Module; import...
So, I've been using a design that is essentially isolated slices except for a shared "commons" which contains things like ids, Country, Address, etc, which need to be available for...
New users of ArchUnit, including myself, are often confused when a seemingly correct rule fails on a class they didn't write, typically one ending with $1, $2, etc. (e.g., MyService$1)....
could you add a full section to the user guide that goes over how `..`, `.(*)..` `.(**)` etc work. I'm hoping it starts with you have this list of packages...
Hello, This Pull Request includes: - Contracts to define an ADR and its content - Concrete implementation in Markdown using toString method overriding - Unit test of a Markdown ADR...
Hi all, I'd like to have to possibility to describe the reason of a rule with an Architecture Decision (ADR), possibly in Markdown, using the following template: https://github.com/adr/madr Thank you....
So of course as you already know moving an existing application to a new architecture requires ignoring certain rules. The Frozen rule concept is pretty good. I see two problems...
I have ```java @Value.Immutable @ValueObject public interface MyId extends Identifier { } ``` and I want to validate ```java classes().that().implement(Identifier.class).should().haveSimpleNameEndingWith("Id") ``` even if we agree this is not the right...